Skip to main content
A newer version of this page is available. .

Numeric Properties in Entity Framework

The example below illustrates how to implement Numeric Properties in an Entity Framework Code-First 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; }