ModelExtensions ModelExtensions Class


Extension methods for IModel.

public static class ModelExtensions
Public Module ModelExtensions


System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
FindEntityType(IModel, Type) FindEntityType(IModel, Type)

Gets the entity that maps the given entity class. Returns null if no entity type with the given name is found.

GetChangeTrackingStrategy(IModel) GetChangeTrackingStrategy(IModel)

Gets the default change tracking strategy being used for entities in the model. This strategy indicates how the context detects changes to properties for an instance of an entity type.

System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
GetPropertyAccessMode(IModel) GetPropertyAccessMode(IModel)

Gets the PropertyAccessMode being used for properties of entity types in this model. Null indicates that the default property access mode is being used.

Note that individual entity types can override this access mode, and individual properties of entity types can override the access mode set on the entity type. The value returned here will be used for any property for which no override has been specified.

System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
System.Object.ToString() System.Object.ToString() Inherited from System.Object