Combining a one-to-one relationship into one object in Fluent NHibernate
Posted
by Mike C.
on Stack Overflow
See other posts from Stack Overflow
or by Mike C.
Published on 2010-05-11T20:57:15Z
Indexed on
2010/05/13
21:24 UTC
Read the original article
Hit count: 541
fluent-nhibernate
I have a one-to-one relationship in my database, and I'd like to just combine that into one object in Fluent NHibernate. The specific tables I am talking about are the aspnet_Users and aspnet_Membership tables from the default ASP.NET Membership implementation. I'd like to combine those into one simple User object and only get the fields I want.
I would also like to make this read-only, as I want to use the built-in ASP.NET Membership API to modify. I simply want to take advantage of lazy-loading.
Any help would be appreciated. Thanks!
© Stack Overflow or respective owner