StringPropertyConfiguration Class
Entity Framework 5.0
Used to configure a string property of an entity type or complex type. This configuration functionality is exposed by the Code First Fluent API, see DbModelBuilder.
System.Object
System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.LengthPropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.LengthPropertyConfiguration
System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration
Namespace: System.Data.Entity.ModelConfiguration.Configuration
Assembly: EntityFramework (in EntityFramework.dll)
The StringPropertyConfiguration type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides LengthPropertyConfiguration.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides LengthPropertyConfiguration.GetHashCode.) |
![]() | GetType | Gets the type of the current instance. This method is hidden from IntelliSense. |
![]() | HasColumnName | Configures the name of the database column used to store the property. |
![]() | HasColumnOrder | Configures the order of the database column used to store the property. This method is also used to specify key ordering when an entity type has a composite key. |
![]() | HasColumnType | Configures the data type of the database column used to store the property. |
![]() | HasDatabaseGeneratedOption | Configures how values for the property are generated by the database. |
![]() | HasMaxLength | Configures the property to have the specified maximum length. |
![]() | IsConcurrencyToken | Configures the property to be used as an optimistic concurrency token. |
![]() | IsConcurrencyToken(Nullable(Of Boolean)) | Configures whether or not the property is to be used as an optimistic concurrency token. |
![]() | IsFixedLength | Configures the property to be fixed length. Use HasMaxLength to set the length that the property is fixed to. |
![]() | IsMaxLength | Configures the property to allow the maximum length supported by the database provider. |
![]() | IsOptional | Configures the property to be optional. The database column used to store this property will be nullable. string properties are optional by default. |
![]() | IsRequired | Configures the property to be required. The database column used to store this property will be non-nullable. |
![]() | IsUnicode | Configures the property to support Unicode string content. |
![]() | IsUnicode(Nullable(Of Boolean)) | Configures whether or not the property supports Unicode string content. |
![]() | IsVariableLength | Configures the property to be of variable length. string properties are variable length by default. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. This method is hidden from IntelliSense. (Overrides LengthPropertyConfiguration.ToString.) |
Show:
