# 75 - Introdction to S#arp Architecture


1/6/2009
Level: Intermediate
Tags: NHibernate ASP.NET MVC
Comments: (33)
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: (33)

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


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



So, you Human...?