MutablePropertyExtensions 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.
Caution
Use IMutableProperty
Extension methods for IMutableProperty.
public static class MutablePropertyExtensions
[System.Obsolete("Use IMutableProperty")]
public static class MutablePropertyExtensions
type MutablePropertyExtensions = class
[<System.Obsolete("Use IMutableProperty")>]
type MutablePropertyExtensions = class
Public Module MutablePropertyExtensions
- Inheritance
-
MutablePropertyExtensions
- Attributes
Methods
FindContainingPrimaryKey(IMutableProperty) |
Gets the primary key that uses this property (including a composite primary key in which this property is included). |
FindFirstPrincipal(IMutableProperty) |
Finds the first principal property that the given property is constrained by if the given property is part of a foreign key. |
FindPrincipals(IMutableProperty) |
Obsolete.
Finds the list of principal properties including the given property that the given property is constrained by if the given property is part of a foreign key. |
GetContainingForeignKeys(IMutableProperty) |
Gets all foreign keys that use this property (including composite foreign keys in which this property is included). |
GetContainingIndexes(IMutableProperty) |
Gets all indexes that use this property (including composite indexes in which this property is included). |
GetContainingKeys(IMutableProperty) |
Gets all primary or alternate keys that use this property (including composite keys in which this property is included). |
GetContainingPrimaryKey(IMutableProperty) |
Obsolete.
Gets the primary key that uses this property (including a composite primary key in which this property is included). |
IsUnicode(IMutableProperty, Nullable<Boolean>) |
Sets a value indicating whether or not this property can persist Unicode characters. |
SetAfterSaveBehavior(IMutableProperty, Nullable<PropertySaveBehavior>) |
Gets or sets a value indicating whether this property can be modified after the entity is saved to the database. If Throw, then an exception will be thrown if a new value is assigned to this property after the entity exists in the database. If Ignore, then any modification to the property value of an entity that already exists in the database will be ignored. |
SetBeforeSaveBehavior(IMutableProperty, Nullable<PropertySaveBehavior>) |
Gets or sets a value indicating whether this property can be modified before the entity is saved to the database. If Throw, then an exception will be thrown if a value is assigned to this property when it is in the Added state. If Ignore, then any value set will be ignored when it is in the Added state. |
SetIsUnicode(IMutableProperty, Nullable<Boolean>) |
Sets a value indicating whether this property can persist Unicode characters. |
SetKeyValueComparer(IMutableProperty, ValueComparer) |
Obsolete.
Sets the custom ValueComparer for this property when performing key comparisons. |
SetMaxLength(IMutableProperty, Nullable<Int32>) |
Sets the maximum length of data that is allowed in this property. For example, if the property is a String ' then this is the maximum number of characters. |
SetPrecision(IMutableProperty, Nullable<Int32>) |
Sets the precision of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of digits. |
SetProviderClrType(IMutableProperty, Type) |
Sets the type that the property value will be converted to before being sent to the database provider. |
SetScale(IMutableProperty, Nullable<Int32>) |
Sets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places. |
SetStructuralValueComparer(IMutableProperty, ValueComparer) |
Obsolete.
Sets the custom ValueComparer for structural copies for this property. |
SetTypeMapping(IMutableProperty, CoreTypeMapping) |
Sets the CoreTypeMapping for the given property |
SetValueComparer(IMutableProperty, ValueComparer) |
Sets the custom ValueComparer for this property. |
SetValueConverter(IMutableProperty, ValueConverter) |
Sets the custom ValueConverter for this property. |
SetValueGeneratorFactory(IMutableProperty, Func<IProperty,IEntityType,ValueGenerator>) |
Sets the factory to use for generating values for this property, or
Setting |
Applies to
Entity Framework