TypeMappingConfigurationBuilder.HasPrecision Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.TypeMappingConfigurationBuilder HasPrecision (int precision);
abstract member HasPrecision : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder
override this.HasPrecision : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder
Public Overridable Function HasPrecision (precision As Integer) As TypeMappingConfigurationBuilder
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.TypeMappingConfigurationBuilder HasPrecision (int precision, int scale);
abstract member HasPrecision : int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder
override this.HasPrecision : int * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.TypeMappingConfigurationBuilder
Public Overridable Function HasPrecision (precision As Integer, scale As Integer) As TypeMappingConfigurationBuilder
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor