CodeGo.net>如何设置数据类型属性为smalldatetime
作者:互联网
有办法吗?以下内容不起作用:
var customer = constructor.Entity<Customer>();
customer.Property(c => c.Date).DataType("smalldatetime");
解决方法:
customer.Property(c => c.Date).HasStoreType("smalldatetime");
标签:c-4-0,ado-net,code-first,entity-framework-4,c 来源: https://codeday.me/bug/20191024/1917759.html