C# Class Northwind.Utils.ReflectionEntityCloner

Inheritance: IProviderEntityCloner
ファイルを表示 Open project: object/NorthwindOData

Public Methods

Method Description
AddEntity ( object entity, string entityTypeName ) : void
AddLink ( object entity, string propertyName, object linkedEntity ) : void
CreateEntityInstance ( Type entityType ) : object
GetEntityType ( string entityTypeName ) : Type
SaveChanges ( ) : void
SetLink ( object entity, string propertyName, object linkedEntity ) : void
SetProperty ( object entity, string propertyName, object propertyValue ) : void
UpdateEntity ( object entity ) : void

Private Methods

Method Description
ConvertValue ( object value, Type conversionType ) : object

Method Details

AddEntity() public abstract method

public abstract AddEntity ( object entity, string entityTypeName ) : void
entity object
entityTypeName string
return void

AddLink() public method

public AddLink ( object entity, string propertyName, object linkedEntity ) : void
entity object
propertyName string
linkedEntity object
return void

CreateEntityInstance() public method

public CreateEntityInstance ( Type entityType ) : object
entityType System.Type
return object

GetEntityType() public method

public GetEntityType ( string entityTypeName ) : Type
entityTypeName string
return System.Type

SaveChanges() public abstract method

public abstract SaveChanges ( ) : void
return void

SetLink() public method

public SetLink ( object entity, string propertyName, object linkedEntity ) : void
entity object
propertyName string
linkedEntity object
return void

SetProperty() public method

public SetProperty ( object entity, string propertyName, object propertyValue ) : void
entity object
propertyName string
propertyValue object
return void

UpdateEntity() public abstract method

public abstract UpdateEntity ( object entity ) : void
entity object
return void