Fluent NHibernate delegate mapping Func -


Looking at this (horizontal) object graph that I

  does not change the public class email Can {public email (string e-mail) {...} // a bunch of useless stuff} Public Interface Ipson {Email Email {get; Set;}}  

Does such a thing exist?

Map (p = & gt; p.EmailAddress). Use (s = & new; New EmailAddress ());

Essentially the person interface will not take a string and I do not have an email class so I can not modify it ...

Fluent is not sure about NHibernate, but you can create your own IUserType which can be found in the email To string and vice versa. It's really easy: see for example.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -