Is there any way? The following does not work:
var customer = constructor.Entity<Customer>(); customer.Property(c => c.Date).DataType("smalldatetime");
customer.Property(c => c.Date).HasStoreType("smalldatetime");
My first approach to the code:
[Table("Customer", Schema = "DBSchema")] public class Customer{ [Column("Date", TypeName = "SmallDateTime")] public DateTime Date{ get; set; } }
Source: https://habr.com/ru/post/1745289/More articles:Has anyone used version control on PeopleSoft? - version-controlUnit testing using InternalsVisibleToAttribute requires compilation with / out: filename.ext? - c #GridView onTouch - androidSQL: merging multiple tables into one - sqlJava WordNet Interface - javaWhat syntax of sugar or language features makes the language hard / hard for analysis? - syntaxParsing xml with dom4j or jdom or in any case - javaHow to pass complex objects to ASP.NET MVC using Get parameters? - parameter-passingWhich software design pattern is best for the following scenario (C #) - designSELECT DISTINCT in a field that does not appear in the recordset? - sqlAll Articles