DateTime to Date/Time
Posted: Fri 23 Mar 2012 11:32
Hi,
I like maping .net DateTime to Date and DateTime to Time.
Is possible in Code First?
I like maping .net DateTime to Date and DateTime to Time.
Is possible in Code First?
Discussion forums for open issues and questions concerning database tools, data access components and developer tools from Devart
https://forums.devart.com/
It is better to map TimeSpan to Time.rogerio.bassete wrote:DateTime to Time
As we understood, you want to specify the server data type for the DateTime column. This can be done with ColumnAttribute (the TypeName property: http://msdn.microsoft.com/en-us/library ... .103).aspx ) or, in case of fluent mapping, with the .HasColumnType(string columnType) method of property configuration (an example of application with fluent mapping and detailed description of Code-First peculiarities is available at http://www.devart.com/blogs/dotconnect/ ... qlite.html).rogerio.bassete wrote:DateTime to Date