C# Класс ExoModel.EntityFramework.EntityFrameworkModelTypeProvider.EntityModelType

Наследование: ReflectionModelType
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
DeferOwnerDetection void
GetEntityState System.Data.EntityState
GetProperty System.Reflection.PropertyInfo
RaiseOnSave void

Открытые методы

Метод Описание
GetObjectContext ( ) : IEntityContext

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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

ConvertToList() защищенный Метод

protected ConvertToList ( ModelReferenceProperty property, object list ) : System.Collections.IList
property ModelReferenceProperty
list object
Результат System.Collections.IList

EntityModelType() защищенный Метод

protected EntityModelType ( string @namespace, Type type, string scope, string format ) : System
@namespace string
type System.Type
scope string
format string
Результат System

GetEligibleProperties() защищенный Метод

Override to ensure that entity key properties are excluded from the model.
protected GetEligibleProperties ( ) : IEnumerable
Результат IEnumerable

GetId() защищенный Метод

Gets the string identifier of the specified instance.
protected GetId ( object instance ) : string
instance object
Результат string

GetInstance() защищенный Метод

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
Результат object

GetIsDeleted() защищенный Метод

Gets the deletion status of the specified instance indicating whether the instance has been permanently deleted.
protected GetIsDeleted ( object instance ) : bool
instance object
Результат bool

GetIsModified() защищенный Метод

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
Результат bool

GetIsPendingDelete() защищенный Метод

Indicates whether the specified instance is pending deletion.
protected GetIsPendingDelete ( object instance ) : bool
instance object
Результат bool

GetObjectContext() публичный Метод

Gets or creates the object context for the current scope of work that corresponds to the current EntityModelType.
public GetObjectContext ( ) : IEntityContext
Результат IEntityContext

InitializeList() защищенный Метод

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
Результат void

OnInit() защищенный Метод

Performs initialization of the model type outside of the constructor to avoid recursion deadlocks.
protected OnInit ( ) : void
Результат void

SaveInstance() защищенный Метод

protected SaveInstance ( ModelInstance modelInstance ) : void
modelInstance ModelInstance
Результат void

SetIsPendingDelete() защищенный Метод

Sets whether the specified instance is pending deletion.
protected SetIsPendingDelete ( object instance, bool isPendingDelete ) : void
instance object
isPendingDelete bool
Результат void