Numeric Properties in EF Core(EF Core中的数字属性)
The example below illustrates how to implement Numeric Properties in an EF Core class.
下面的示例说明了如何在EF Core类中实现数字属性。
C#
public virtual double DoubleProperty { get; set; }
public virtual float SingleProperty { get; set; }
public virtual long LongProperty { get; set; }
public virtual int IntegerProperty { get; set; }
public virtual decimal DecimalProperty { get; set; }
public virtual byte ByteProperty { get; set; }
// Make sure that you use options.UseChangeTrackingProxies() in your DbContext settings.
标签:02,Core,set,get,EF,virtual,public
From: https://blog.csdn.net/thomastang200912_126/article/details/142783164