Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Numeric Properties in EF 6 and EF Core

The example below illustrates how to implement Numeric Properties in an EF 6 or EF Core class.

public double DoubleProperty { get; set; }
public float SingleProperty { get; set; }
public long LongProperty { get; set; }
public int IntegerProperty { get; set; }
public decimal DecimalProperty { get; set; }
public byte ByteProperty { get; set; }