Johan's Blog

This and that in a developer's life in general
Welcome to Blogs @ IRM Sign in | Join | Help
 Search

Disclaimer

The content of this site is my own personal opinion and does not in any way represent my employer, it's subsideries or affiliates. These postings are provided "AS IS" with no warranties, and confer no rights.

This Blog

Please Feedback! Unity, nHibernate, Fluent, Linq... Trying New Architecture Combinations

We're thinking about a new architecture for a set of pretty large WCF (and perhaps also REST) services that's going to be developed during the next year and perhaps you dear reader would like to comment!

The services themselves are pretty straight forward, we're going to serve data from a huge SQL Server database which unfortunately is old and lacks relationship/fk/pk between most tables. Nothing we can do about that I'm afraid but we thought that nHibernate could be a good way to map data to domain objects. Some of the services will need to handle more complex business rules, but no heavy computing or long running stuff (not atm anyway).

What more can I say... everything is going to be running on .NET 3.5, and we have a pretty good view of the business domain, we're currently modelling the information/domain together with the customer and we will probably be developing the whole thing in a DDD-ish way, using unit and integration tests, IoC...

So, currently we're thinking of WCF/REST for the service layer, Unity as container and building something around nHibernate for the Repository (looking at the IRepository implementation in Fluent). We're new to nHibernate but have been looking at nHibernate.Linq which looks really nice, and I think we'll use the Fluent API and map the classes in code instead of using XML configuration (which I'm allergic against). Just have to figure out a good way to make it all fit together, especially to get a decent UnitOfWork to work with the nHibernate session and the repository. I'll see what I come up with and post it here.

Ideas? Please comment or send me an email of you like.


Cross-posted from my blog at http://weblogs.asp.net/jdanforth
Published den 17 december 2008 14:04 by johan
Filed under: , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Nikola Malovic said:

Johan,

I would suggest you to try out to use ADO NET Data services combined with NHibernate  or with Entity Framework(V1 - if starting from DB is ok with you, V2 - if you care about PI, POCO etc)

I had in last couple of months fairly big project with nHIbernate (which combined with nHIbernate.Linq and FluentNhibernate rocks) but recently I had started playing with notorious Entity Framework combined with ADO NET Data Services and so far (altought there are some glitches related to the fact that it is V1) it looks very productive

As for the DDD before you start doing another Repository<T> I advice you to check out Ayende's rhino tools repository

Here are couple of links you might want to check it out:

http://wildermuth.com/2008/07/20/Silverlight_2_NHibernate_LINQ_==_Sweet)

https://sessions.microsoftpdc.com/public/timeline.aspx

(look for TL07 Developing Applications Using Data Services)

januari 1, 2009 12:24

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server, by Telligent Systems