Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
2 posts • Page 1 of 1
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
If you already have a database schema and you want just to map classes to it, the easier way to proceed is to create a Code-First model basing on the existing database with http://www.devart.com/blogs/dotconnect/ ... plate.html.