# 75 - Introdction to S#arp Architecture


1/6/2009
Level: Intermediate
Tags: NHibernate ASP.NET MVC
Comments: (51)
Author:
Kyle Baley
 
Presented By:
Manning Publications


In this episode we will give you an introduction to the S#arp Architecture for the ASP.NET MVC Framework.

This is a solid architectural foundation for rapidly building maintainable web applications leveraging the ASP.NET MVC framework with NHibernate. The primary advantage to be sought in using any architectural framework is to decrease the code one has to write while increasing the quality of the end product
Click here to Watch this Episode

Download (30.46 MB) (11:33) (1440x900)
Download (19.38 MB) (11:33) (960x600)

Links/Resources:


Comments: (51)

Joe Young said....

I am currently watching this and the autor mentions that your controllers should be in a seperate assembly. I don't understand this thinking and would love some more explaination on this reasoning.


1/9/2009 7:49:07 AM

Kyle Baley said....

Joe,

There's some debate about that actually. Check out the discussion thread on it here: http://groups.google.com/group/sharp-architecture/browse_thread/thread/16c953466e2689b2/983ac8af9dfb7a72?hl=en&lnk=gst&q=controllers+assembly#983ac8af9dfb7a72


1/9/2009 8:15:10 AM

chris said....

I did exactly the same, just with a customer table.

Select's work, but creating new or updating existing always leads to this error:

System.IndexOutOfRangeException: Invalid index 4 for this SqlParameterCollection with Count=4.

Does anybody knows what I'm doing wrong?

 


1/11/2009 10:37:19 AM

chris said....

I found it, searching for ~5h? well, it was a stupid copy/paste error:

Map(x => x.Firstname, "cFirstname");
Map(x => x.Lastname, "cFirstname");

(first and lastname map to same column ...)

thanks for the dimecasts, they are excellent!


1/11/2009 10:54:41 AM

Wes said....

Thanks for the dimecast.  I've been playing around with the architecture for a bit now and i have to say that it is still definately in its infancy.  The lack of strong examples (northwind w/CRUD is a joke) and limited community support kills any immediate benefits. I would be very interested to see a dimecast on implementing search capability since this is one of the major missing examples at this time. 


4/13/2009 9:04:40 PM

Kyle said....

Wes,

I think that's an issue with nomenclature. It's not so much an architecture as it is a starting point for MVC apps with some useful base classes. Almost any question that asks, "How can you do this in Sharp Architecture?" can be generalized to "How can I do this in MVC?" I just started an MVC project that doesn't require a database. I used the Sharp project template to create my starting structure, then ripped out all the data access classes and the CRUD project. The benefit is that the projects are all there with references set up and I can still use the testing helpers. Made it a lot easier than starting from scratch with a single MVC web application project.


4/16/2009 12:38:04 PM

Wes said....

Kyle,

I agree and believe that i overstated the limitations of Sharp Architecture.  After reviewing numerous tutorials on Asp.net i came to the realization that like you said the Sharp Project is a starting point.  I was expecting it to be more like Codeigniter which i'm very familiar with.  Nevertheless, i'm quickly beginning to love the Sharp Project. 

Still having problems implementing search functionality, mostly related to my lack of knowledge in regards to asp.net mvc.  Just can't seem to put a search into place that utilizes pagination using nhibernate. Thanks again for the dimecasts.


4/16/2009 2:24:53 PM

Ruchi Khanna said....

Where can we view the other videocasts  s#arp with webservices?


4/29/2009 5:50:10 AM

WD said....

How much work is involved in swapping IOC if want to use something other than castle?


8/28/2009 10:32:43 AM

replica bags said....

<a href="http://www.go4bagtrade.com"> chanel replica bags </a>;
[URL=http://www.go4bagtrade.com/]Replica Gucci Handbags[/URL],
bags prada replica purses replica prada purses
[a/] http://www.go4bagtrade.com  [a] cheap replica handbags [/a]


1/11/2010 8:22:28 AM

Atlanta Cheap Flight said....

I really love the Sharp project. When can we expecat another video cast?


1/11/2010 6:22:14 PM

Hair Crimpers said....

I'd never heard of S#ast, this is very informative! Thanks!


1/12/2010 5:01:52 AM

Pariloto said....

Thanks a lot for this.. the time spend to download the movie worth a lot! You did an excelent job!


1/23/2010 9:13:12 AM

video advertising said....

  I was expecting it to be more like Codeigniter which i'm very familiar with.  Nevertheless, i'm quickly beginning to love the Sharp Project.


2/14/2010 2:00:44 AM

temporary tattoos said....

solution, it has been successfully tested on my local drupal. Waiting to be done on my real drupal site.


2/20/2010 2:57:44 AM

Stainless Steel Cookware Sets said....

I've been playing around with the architecture for a bit now and i have to say that it is still definately in its infancy.  The lack of strong examples (northwind w/CRUD is a joke) and limited community support kills any immediate benefits. I would be very interested to see a dimecast on implementing search capability since this is one of the major missing examples at this time.


2/23/2010 2:07:13 AM

ghd said....

Official Retailer - 53% off with free delivery for the ghd straighteners and hair products. Including the new ghd mk4, wide plate ghd and 


2/28/2010 6:28:01 AM

discount tiffany said....

Best tiffany shop in the world,discount tiffany,tiffany jewelry,tiffany jewellery,tiffany for sale.And i like pendants , key rings ,earrings , necklaces and so on.


3/4/2010 10:49:46 PM

buy research papers said....

Useful for my Architecture for the ASP.NET MVC Framework research paper


3/8/2010 8:25:44 AM


free essays said....

I have seen a lot of article and essay about new features in ASPX or .net.


3/8/2010 9:55:06 PM

free essay said....

Actually the writes up are more educational that technical.


3/8/2010 9:57:17 PM

metin2yang said....

The furthest distance in the world Is not between life and death metin2 yangmetin2 yangBut when I stand in front of you Yet you don't know that I love you The furthest distance in the worldmetin2 yangmetin2 yang Is not when I stand in front of you Yet you can't see my love But when undoubtedly knowing the love from both Yet cannot be together metin2 yangmetin2 yangThe furthest distance in the worldIs not being apart while being in loveBut metin2 yangmetin2 yang when painly cannot resist the yearningYet pretending you have never been in my heartmetin2 yangmetin2 yangThe furthest distance in the worldIs not when painly cannot resist the yearningmetin2 yangmetin2 yangmetin2 yangyet pretending you have never been in my heartbut using one's indifferent heartTo dig an uncrossable riverFor the one who loves you

 


3/9/2010 1:49:13 AM

Harley Davidson Bedding said....

It is useful indeed.

harley davidson bedding|mikimoto pearl necklace

 


3/9/2010 9:46:33 AM

replica rolex said....

He might not go this week, but he's further proof sea dweller that being sea dweller adorable can get you into the semifinals but rolex submariner not much rolex submariner further. Urban is the weakest male link, so he might as well blast submariner off with a submariner submariner blaze of glory with something rolex yachtmaster ridiculous like rolex yachtmaster And I Am Telling You I'm Not yachtmaster Going.


3/12/2010 4:52:32 PM

rolex -submariner said....

With yachtmaster rolex yacht master Jermaine Sellers rolex yacht master gone, dancer Hall remains as the loose cannon in the yacht master bunch. His yacht master confidence hasn't yet meshed with a breakout performance, and replica watches though his replica watches sedate take on Tina Turner's What's Love Got to Do With replica watch It was replica watch interesting, Hall has been the fake watches judges' punching fake watches bag to date.


3/12/2010 4:53:59 PM

rolex yacht master said....


Unless he kills it, say with a seductive Usher throw-down, Hall could be rolex the next to rolex go. Speaking of cute, James is still trying to shake off the whole rolex watch cougar-bait rolex watch thing, but his limp rendition of the too-frequent Idol cover I Don't Want to Be didn't rolex watches exactly show rolex watches off his rock chops. Regardless, assuming he doesn't completely tank, Casey replica rolex will likely make the top 12. He should, however, soar by proving replica rolex his grit this week with something edgier. How about an unplugged rolex replica Kid Rock tune? He's the rolex replica token rocker, which is a good place to be this year, because he's got virtually no competition.


3/12/2010 4:55:37 PM

armani watches said....

Dewyze is on a hot streak, and he's got Simon tissot on his tissot side, so he should play it safe this armani watch week to ensure armani watch a top 12 berth. He's done well playing his acoustic armani watches guitar, so armani watches maybe a Kings of Leon song would work for him. What armani happened armani to you, man? Garcia seemed a shoo-in for audemars piguet watch the top audemars piguet watch three.


3/12/2010 6:20:41 PM

lv watches said....

But he's gotten steadily diminishing returns thanks audemars piguet watches to sleepy audemars piguet watches song choices, like James Morrison's You Give Me Something, which audemars piguet find him audemars piguet fading into the pack. He needs another Straight Up, pronto! Now's lv watch the best lv watch time to wow the judges again with a clever arrangement lv watches of a classic lv watches — perhaps a folky version of Jane's Addiction's Been lv Caught lv Stealing?


3/12/2010 6:24:12 PM

parmigiani watches said....

He's not blowing anyone away, but movado watch slow-and-steady movado watch Lynche is getting it done every week. He's likeable, solid and very comfortable onstage. Big movado watches Mike is almost movado watches certainly going to advance, so a bit more of what the movado judges already movado like, perhaps a touch of Maxwell on parmigiani watch acoustic guitar, could parmigiani watch ensure his spot. Either Lambert is pulling a rope-a-dope and is planning to emerge parmigiani watches as a camera-ready parmigiani watches superstar from his mullet-duckling persona, or we're reading too much into his phoenix-like rise from the ashes of two twitchy weeks ago.


3/12/2010 6:28:01 PM

replica watches said....

<A href="http://www.longineswatches.org/">replica watch</A><BR><A href="http://www.longineswatches.org">watches for sale</A><BR><A href="http://www.longineswatches.org/">replica watches</A><BR><A href="http://www.longineswatches.org/">cheap replica watches</A><BR><A href="http://www.longineswatches.org">cheap fake watches</A><BR><A href="http://www.longineswatches.org/Patek-Philippe/">Patek Philippe watches</A><BR><A href="http://www.longineswatches.org/Tag-Heuer/">Tag Heuer watches</A><BR><A href="http://www.longineswatches.org/Rolex/Air-King/">Rolex Air-King replica</A><BR><A href="http://www.longineswatches.org/Patek-Philippe/">Patek Philippe watch for sale</A><BR><A href="http://www.longineswatches.org/Rolex/Datejust%20II/">replica Rolex Datejust II</A><BR><A href="http://tiffanyjewelryblog.com">Atlas cube lock Charm</A><BR>


3/13/2010 1:31:35 AM

sexy lingerie said....

Fashion and <a href="http://www.yo2underwear.com">sexy lingerie</a> are cheap now,it's really wonderful,<a href="http://www.yo2underwear.com/corsets-bustiers-c-1.html">cheap corsets bustiers</a>.


3/13/2010 10:20:39 PM

sexy lingerie said....

<a href="http://www.yo2underwear.com">cheap sexy lingerie</a> are really nice,i really love them very much,<a href="http://www.yo2underwear.com/corsets-bustiers-c-1.html">cheap corsets bustiers</a> you can try it.


3/13/2010 11:08:05 PM

replica armani said....

Hurley waking up in the field of flowers reminded me of replica alain silberstein watch the poppy replica alain silberstein watch sequence in The Wizard of Oz. Jack wanting to get moving replica alain silberstein watches toward whatever replica alain silberstein watches destiny awaited him while Hurley wanting to eat replica alain silberstein first—reminders replica alain silberstein that Hurley is gripped by hunger when he’s anxious and Jack armani replica defers food armani replica until his deeper yearnings are sated. They then fought replica armani watch over the replica armani watch right path back to The Temple.


3/14/2010 6:17:07 PM

replica baume mercier said....

Hurley was either going to take the long way replica armani watches or the replica armani watches wrong way, while Jack wanted to go directly back the replica armani way they replica armani came. It was hard to hear the line and not think Lost was audemars piguet replica saying audemars piguet replica something about its two-track, parallel world replica audemars piguet watch structure. Then replica audemars piguet watc Richard showed up and offered a third path. Jack followed. When replica audemars piguet watches Hurley asked replica audemars piguet watches if Richard could be trusted.


3/14/2010 6:19:20 PM

replica alain silberstein said....

Jack said, At least he’s not stallin’. It was another wink at replica audemars piguet the audience replica audemars piguet in an episode full of them. Combined with the line about Napoleon’s Elba being baume mercier replica the place baume mercier replica where everything became clear, I wondered if Lost was addressing replica baume mercier watch anyone griping replica baume mercier watch about the pace of answers and saying, Don’t worry. Trust us. Okay? Ironically, replica baume mercier watches then replica baume mercier watches. He seemed to strongly replica baume mercier imply that replica baume mercier yes indeedy.


3/14/2010 6:20:35 PM

box watches said....

which was not where box watch he said was box watch taking them, although it was where we’ve been wanting Alpert to go for a couple box watches years now box watches as we’ve wondered if the ageless Others came to The Island via the box slave box ship. Another reading of Richard’s third way as a metaphor for bell ross watch Lost’s bell ross watch storytelling.


3/14/2010 6:53:20 PM

baume mercier said....

We won’t lead you astray, but we’re not going the way you bell ross expect.We’ll bell ross be doing this answer thing our way. Richard stormed into swiss rolex watch the bowels swiss rolex watch of the Black Rock and into its proverbial hurt locker—the place swiss rolex watches where military swiss rolex watches folk keep their explosives. The term hurt locker also swiss rolex refers to any swiss rolex place or situation where the soldier feels fundamentally unsafe. Both baume mercier watch terms applied to baume mercier watch Richard.


3/14/2010 6:58:06 PM

breguet watches said....

He was profoundly betrayed by Jacob’s baume mercier watches death, scared baume mercier watches out of his eyelashes by Smokey, and just a massive baume mercier existential mess baume mercier in general. He wanted out—and by out, I mean he wanted breguet watch Jack to blow breguet watch him up with dynamite because he breguet watches couldn’t do breguet watches the deed himself. He explained as breguet he stripped bregue some fuse.


3/14/2010 7:03:52 PM

replica breitling said....

Jack and Richard’s discussion of breitling watch Jacob’s magical breitling watch touching and supernatural gifts in the dark belly of the breitling watches Black Rock breitling watches slave ship. Honestly, I ignored the first few replica breitling dozen of replica breitling these emails. Whaddya mean? I wrote 1500 words breitling replica about all breitling replica this! But after getting replica breitling watches another raft replica breitling watches of critical emails.


3/15/2010 1:15:26 AM

replica breitling said....

I checked out the recap and made a discovery a lange sohne replica that made a lange sohne replica me want to blow my own bad replica a lange sohne watch self up: Somehow replica a lange sohne watch, my Black Rock analysis if you can call what I do analysis replica a lange sohne watches wasn’t there replica a lange sohne watches! I apologize and blame myself. I write and submit various drafts of the recap replica a lange sohne during the night, and replica a lange sohne amid the confusion I create, this section slipped alain silberstein replica through the alain silberstein replica cracks.


3/15/2010 1:15:55 AM


replica cartier said....

When the beach crew saw her, the happy-huggy moment abruptly replica bvlgari ended, and replica bvlgari everyone gave her the stink-eye especially, ironically, Sawyer — just like cartier replica Jack and cartier replica Ben traded suspicious looks in last night’s episode. We learned at replica cartier watch the very replica cartier watch end of One Of Us that newbie Juliet was indeed shady; she had been sent by Ben replica cartier watches to spy on replica cartier watches the camp. The moment was mirrored, I think, by having Dr. Linus end with Widmore’s replica cartier submarine spying replica cartier on the castaways.


3/17/2010 12:13:30 AM

replica chanel said....

Why might Jack be so angry? Oh, I don’t know. The same reason Sally Brown was so angry after chanel replica spending all chanel replica night in a pumpkin patch with Linus Van Pelt waiting for transcendent replica chanel watch revelation to replica chanel watch arrive. This Island thing — Jacob, Ben, everything — has made a big mess of his life, and he replica chanel watches wants someone replica chanel watches to take responsibility for it. He wants payback. Sally’s cry is replica chanel his cry: replica chanel Of course, back in season 3, Juliet and Jack were chopard replica nurturing heroic chopard replica double-crosses.


3/17/2010 12:14:43 AM

replica chopard said....


Still, at this point in the season, I’m looking inside Jack’s heart, and replica chopard watch wondering replica chopard watch which way his scales are tilting. Will he be replacing Jacob by replica chopard watches season’s end replica chopard watches or Smokey? A study published earlier this week by the American Medical replica chopard Association's replica chopard Archives of Internal Medicine argues that if pizza and soda concord replica were more concord replica expensive, people would consume them less frequently replica concord watch in favor of healthier fare.


3/17/2010 12:16:10 AM

men's watches said....

Sallie James, a policy analyst at the libertarian Cato Institute, denounces panerai watch these types panerai watch of proposals as paternalistic. It's no one's business what anybody puts in their mouths, she panerai watches says in an panerai watches interview. I suspect some lawmakers are attracted to it for a revenue source. With government budgets panerai being squeezed panerai, she has a point. Of course, obesity is a serious problem. Medical expenses for men's watches the overweight men's watches accounted for 9.1% of total U.S. medical expenditures in 1998 and may have women's watches reached as women's watches high as $78.5 billion.


3/17/2010 11:48:47 PM

women's watches said....

according to the CDC. Approximately half of these costs were paid ladies watches by Medicaid ladies watches and Medicare. From big chains to mom-and-pop operations, pizza is about a $50 breitling watch billion business breitling watch in the U.S. Many pizza restaurants have suffered in recent years from wildly fluctuating breitling watches commodities breitling watches prices; meanwhile, cash-strapped have customers increasingly chosen to dine out in breitling cheaper fast-food breitling restaurants. An 18% tax increase on pizza and soda would cartier watch be devastating cartier watch to the industry.


3/17/2010 11:52:22 PM

ladies watches said....

Which counts on soda sales to boost its profits, says cartier watches Jennifer Litz cartier watches editor of Pizza Marketplace, an industry Web site. Some cartier pizza chains cartier seem puzzled as to why their product specifically is under fire chanel watch from anti-obesity chanel watch activists. Pizza is completely customizable -- you can make it as healthy chanel watches or as indulgent chanel watches as you want, says Tim McIntyre, vice president for communications chanel at Domino's chanel Pizza Inc.in an email statement.


3/17/2010 11:56:22 PM

replica corum said....

Anti-obesity soda taxes are being discussed in New York and Philadelphia. There replica concord watches is even replica concord watches talk of a levy at the federal level. Both the Centers for Disease Control and replica concord Prevention replica concord and the American Heart Association support soda taxes. But corum replica these taxes corum replica are unfair to the poor, who already spend a far greater fraction of their salaries replica corum watch on food replica corum watch than the wealthy. And attempts to change behavior through taxation or replica corum watches legislation don't always replica corum watches produce the desired effects.


3/18/2010 12:15:55 AM

replica graham said....

For years, smoking rates declined as cigarette taxes skyrocketed. Then the replica corum declines replica corum stalled, in part because states did not spend enough on smoking cessation ferrari replica efforts The ferrari replica CDC estimates that about 46 million American adults are smokers. Studies replica ferrari watch of New York replica ferrari watch City's law mandating that restaurants provide calorie information disagree about replica ferrari watches whether it is replica ferrari watches having a positive impact. Americans are quite ingenious at replica ferrari avoiding laws replica ferrari they don't like.


3/18/2010 12:17:27 AM

replica armani said....


Think about the throngs of people who take special road trips franck muller replica to buy Fourth franck muller replica of July fireworks which are illegal where they live. Delaware advertises itself at the home of tax-free replica franck muller watch shopping because replica franck muller watch it lacks a sales tax: In theory, out-of-state residents are supposed to declare replica franck muller watches their Delaware replica franck muller watches purchases to their home states, but most never bother. At least these items are replica franck muller easily identifiable: Can replica franck muller you imagine the fights that will occur over obesity-prevention taxes if experts can't agree on graham replica what is graham replica nutritious.


3/18/2010 12:18:46 AM


Name: *
Email (not displayed): *
Url:
Comments: *



So, you Human...?