NHibernate Fluent versus Entity Framework 4.0 and LINQ

On my prioer contract, we used Entity Framework 4.0 and LINQ, at my suggestion and had a tremendous success. My next job uses NHibernate with Fluent as their ORM, also with SQL Server 2008.

I used NHibernate years ago with ActiveRecord and Rhino Igloo, but don't have a lot of recollection on how to use that. I assume Fluent would be much different.

Can I use LINQ and Lamdba expressions with NHibernate?

Are there partial classes where I can add functionality on top of the base functionality of the ORM?

Please give me an idea of what to expect that's different between NHibernate Fluent and Entity Framework 4.0 and LINQ.


Thanks,
newbieweb
newbiewebSr. Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
hi,

LINQ and lambda expressions have nothing to do with ORM. You can use LINQ against any IEnumerable[<T>]. Thus when NHibernate returns such collections the answer is yes. Lambda expressions can used always where you need them there is no relation/dependency on any ORM.

mfG
--> stefan <--
0
newbiewebSr. Software EngineerAuthor Commented:
Great. Thanks.

How about the partial classes I am so accustomer to with EF4? Would NHibernate and Fluent use the same approach?

newbieweb
0
ste5anSenior DeveloperCommented:
hi,

you can use partial classes with EF4 and NHibernate/Fluent. But it's imho a little bit easier with NHibernate/Fluent as the EF4 classes are more complex at the first glance.

mfG
--> stefan <--
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiewebSr. Software EngineerAuthor Commented:
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.