C# Class ExoModel.EntityFramework.EntityFrameworkModelTypeProvider.EntityModelType

Inheritance: ReflectionModelType
Afficher le fichier Open project: vc3/ExoModel

Private Properties

Свойство Type Description
DeferOwnerDetection void
GetEntityState System.Data.EntityState
GetProperty System.Reflection.PropertyInfo
RaiseOnSave void

Méthodes publiques

Méthode Description
GetObjectContext ( ) : IEntityContext

Gets or creates the object context for the current scope of work that corresponds to the current EntityModelType.

Méthodes protégées

Méthode Description
ConvertToList ( ModelReferenceProperty property, object list ) : System.Collections.IList
EntityModelType ( string @namespace, Type type, string scope, string format ) : System
GetEligibleProperties ( ) : IEnumerable

Override to ensure that entity key properties are excluded from the model.

GetId ( object instance ) : string

Gets the string identifier of the specified instance.

GetInstance ( string id ) : object

Gets or creates the instance for the specified id.

GetIsDeleted ( object instance ) : bool

Gets the deletion status of the specified instance indicating whether the instance has been permanently deleted.

GetIsModified ( object instance ) : bool

Gets the underlying modification status of the specified instance, indicating whether the instance has pending changes that have not been persisted.

GetIsPendingDelete ( object instance ) : bool

Indicates whether the specified instance is pending deletion.

InitializeList ( ModelInstance instance, ModelReferenceProperty property ) : void

Initializes null list properties when updated via a call to ModelInstanceList.Add or ModelInstanceList.Update.

OnInit ( ) : void

Performs initialization of the model type outside of the constructor to avoid recursion deadlocks.

SaveInstance ( ModelInstance modelInstance ) : void
SetIsPendingDelete ( object instance, bool isPendingDelete ) : void

Sets whether the specified instance is pending deletion.

Private Methods

Méthode Description
DeferOwnerDetection ( ModelType type, EntityReferenceProperty property, System.Data.Metadata.Edm.NavigationProperty oneNavProp ) : void
GetEntityState ( object instance ) : System.Data.EntityState

Gets the EntityState of the specified instance.

GetProperty ( Type declaringType, string name ) : PropertyInfo
RaiseOnSave ( ModelInstance instance ) : void

Method Details

ConvertToList() protected méthode

protected ConvertToList ( ModelReferenceProperty property, object list ) : System.Collections.IList
property ModelReferenceProperty
list object
Résultat System.Collections.IList

EntityModelType() protected méthode

protected EntityModelType ( string @namespace, Type type, string scope, string format ) : System
@namespace string
type System.Type
scope string
format string
Résultat System

GetEligibleProperties() protected méthode

Override to ensure that entity key properties are excluded from the model.
protected GetEligibleProperties ( ) : IEnumerable
Résultat IEnumerable

GetId() protected méthode

Gets the string identifier of the specified instance.
protected GetId ( object instance ) : string
instance object
Résultat string

GetInstance() protected méthode

Gets or creates the instance for the specified id.
protected GetInstance ( string id ) : object
id string The identifier of an existing instance, or null to create a new instance
Résultat object

GetIsDeleted() protected méthode

Gets the deletion status of the specified instance indicating whether the instance has been permanently deleted.
protected GetIsDeleted ( object instance ) : bool
instance object
Résultat bool

GetIsModified() protected méthode

Gets the underlying modification status of the specified instance, indicating whether the instance has pending changes that have not been persisted.
protected GetIsModified ( object instance ) : bool
instance object
Résultat bool

GetIsPendingDelete() protected méthode

Indicates whether the specified instance is pending deletion.
protected GetIsPendingDelete ( object instance ) : bool
instance object
Résultat bool

GetObjectContext() public méthode

Gets or creates the object context for the current scope of work that corresponds to the current EntityModelType.
public GetObjectContext ( ) : IEntityContext
Résultat IEntityContext

InitializeList() protected méthode

Initializes null list properties when updated via a call to ModelInstanceList.Add or ModelInstanceList.Update.
protected InitializeList ( ModelInstance instance, ModelReferenceProperty property ) : void
instance ModelInstance
property ModelReferenceProperty
Résultat void

OnInit() protected méthode

Performs initialization of the model type outside of the constructor to avoid recursion deadlocks.
protected OnInit ( ) : void
Résultat void

SaveInstance() protected méthode

protected SaveInstance ( ModelInstance modelInstance ) : void
modelInstance ModelInstance
Résultat void

SetIsPendingDelete() protected méthode

Sets whether the specified instance is pending deletion.
protected SetIsPendingDelete ( object instance, bool isPendingDelete ) : void
instance object
isPendingDelete bool
Résultat void