DecimalPropertyConvention Class
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.
Convention to set precision to 18 and scale to 2 for decimal properties.
public class DecimalPropertyConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EdmProperty>
type DecimalPropertyConvention = class
interface IConceptualModelConvention<EdmProperty>
interface IConvention
Public Class DecimalPropertyConvention
Implements IConceptualModelConvention(Of EdmProperty)
- Inheritance
-
DecimalPropertyConvention
- Implements
Constructors
DecimalPropertyConvention() |
Initializes a new instance of DecimalPropertyConvention with the default precision and scale. |
DecimalPropertyConvention(Byte, Byte) |
Initializes a new instance of DecimalPropertyConvention with the specified precision and scale. |
Methods
Apply(EdmProperty, DbModel) |
Applies this convention to an item in the model. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework