C# 클래스 ExoModel.EntityFramework.EntityFrameworkModelTypeProvider.EntityModelType

상속: ReflectionModelType
파일 보기 프로젝트 열기: vc3/ExoModel

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