PropertyBuilder<TProperty>.HasPrecision Method

Definition

Overloads

HasPrecision(Int32)

Configures the precision of the property.

HasPrecision(Int32, Int32)

Configures the precision and scale of the property.

HasPrecision(Int32)

Configures the precision of the property.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasPrecision (int precision);
override this.HasPrecision : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
Public Overridable Function HasPrecision (precision As Integer) As PropertyBuilder(Of TProperty)

Parameters

precision
Int32

The precision of the property.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

HasPrecision(Int32, Int32)

Configures the precision and scale of the property.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasPrecision (int precision, int scale);
override this.HasPrecision : int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
Public Overridable Function HasPrecision (precision As Integer, scale As Integer) As PropertyBuilder(Of TProperty)

Parameters

precision
Int32

The precision of the property.

scale
Int32

The scale of the property.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to