One of my entity classes can be stored on the sql server of the database as BIGINT. My question is: how to get Entity Framework structure? context to know how to store and retrieve instances of my object class?
More details. I use Noda Time , which can represent a (much larger) range of dates than SQL or .NET datetime can (And this is a dope dessert). My Entity Class, Happening, is a wrapper around the NodaTime Instant Class. I can set Happening from long and get from going on with methods such as .SetFromLong (long moment) and .ToLong ().
My model is currently working for me, saving classes that contain properties of the dotTime type dotTime. If instead I want to use the properties of my custom "Happening" type, how can I tell the Entity Framework how to save them?
If I read this article on modeling and cartography, am I on the right track or skipping something simpler?
http://msdn.microsoft.com/en-us/library/bb896343.aspx
I am using framework 4 entity.
source share