SqlCePropertyMaxLengthConvention 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 a default maximum length of 4000 for properties whose type supports length facets when SqlCe is the provider.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="Casing is intentional")]
public class SqlCePropertyMaxLengthConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.ComplexType>, System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EntityType>
public class SqlCePropertyMaxLengthConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.ComplexType>, System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EntityType>
type SqlCePropertyMaxLengthConvention = class
interface IConceptualModelConvention<EntityType>
interface IConceptualModelConvention<ComplexType>
interface IConvention
Public Class SqlCePropertyMaxLengthConvention
Implements IConceptualModelConvention(Of ComplexType), IConceptualModelConvention(Of EntityType)
- Inheritance
-
SqlCePropertyMaxLengthConvention
- Attributes
- Implements
Constructors
SqlCePropertyMaxLengthConvention() |
Initializes a new instance of SqlCePropertyMaxLengthConvention with the default length. |
SqlCePropertyMaxLengthConvention(Int32) |
Initializes a new instance of SqlCePropertyMaxLengthConvention with the specified length. |
Methods
Apply(ComplexType, DbModel) |
Applies this convention to an item in the model. |
Apply(EntityType, DbModel) |
Applies this convention to an item in the model. |
Applies to
Entity Framework