Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DecimalPropertyConvention Class
Collapse the table of content
Expand the table of content

DecimalPropertyConvention Class

 

Convention to set precision to 18 and scale to 2 for decimal properties.

Namespace:   System.Data.Entity.ModelConfiguration.Conventions
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.ModelConfiguration.Conventions.DecimalPropertyConvention

public class DecimalPropertyConvention : IConceptualModelConvention<EdmProperty>, 
	IConvention

NameDescription
System_CAPS_pubmethodDecimalPropertyConvention()

Initializes a new instance of DecimalPropertyConvention with the default values.

System_CAPS_pubmethodDecimalPropertyConvention(Byte, Byte)

Initializes a new instance of DecimalPropertyConvention with the specified precision and scale.

NameDescription
System_CAPS_pubmethodApply(EdmProperty, DbModel)

Applies this convention to a property.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2015 Microsoft