C# Class ExoModel.DynamicModelTypeProvider.DynamicModelType

Inheritance: ModelType
Datei anzeigen Open project: vc3/ExoModel

Public Methods

Method Description
GetModelInstance ( object instance ) : ModelInstance

Protected Methods

Method Description
ConvertToList ( ModelReferenceProperty property, object list ) : IList
GetId ( object instance ) : string
GetInstance ( string id ) : object
GetIsDeleted ( object instance ) : bool
GetIsModified ( object instance ) : bool
GetIsPendingDelete ( object instance ) : bool
OnInit ( ) : void
OnStartTrackingList ( ModelInstance instance, ModelReferenceProperty property, IList list ) : void
OnStopTrackingList ( ModelInstance instance, ModelReferenceProperty property, IList list ) : void
SaveInstance ( ModelInstance modelInstance ) : void
SetIsPendingDelete ( object instance, bool isPendingDelete ) : void

Private Methods

Method Description
DynamicModelType ( string name, ModelType baseType, string format, Attribute attributes, IEnumerable properties, IModelTypeProvider provider = null ) : System

Method Details

ConvertToList() protected method

protected ConvertToList ( ModelReferenceProperty property, object list ) : IList
property ModelReferenceProperty
list object
return IList

GetId() protected method

protected GetId ( object instance ) : string
instance object
return string

GetInstance() protected method

protected GetInstance ( string id ) : object
id string
return object

GetIsDeleted() protected method

protected GetIsDeleted ( object instance ) : bool
instance object
return bool

GetIsModified() protected method

protected GetIsModified ( object instance ) : bool
instance object
return bool

GetIsPendingDelete() protected method

protected GetIsPendingDelete ( object instance ) : bool
instance object
return bool

GetModelInstance() public method

public GetModelInstance ( object instance ) : ModelInstance
instance object
return ModelInstance

OnInit() protected method

protected OnInit ( ) : void
return void

OnStartTrackingList() protected method

protected OnStartTrackingList ( ModelInstance instance, ModelReferenceProperty property, IList list ) : void
instance ModelInstance
property ModelReferenceProperty
list IList
return void

OnStopTrackingList() protected method

protected OnStopTrackingList ( ModelInstance instance, ModelReferenceProperty property, IList list ) : void
instance ModelInstance
property ModelReferenceProperty
list IList
return void

SaveInstance() protected method

protected SaveInstance ( ModelInstance modelInstance ) : void
modelInstance ModelInstance
return void

SetIsPendingDelete() protected method

protected SetIsPendingDelete ( object instance, bool isPendingDelete ) : void
instance object
isPendingDelete bool
return void