Initializes a new instance of the Entity class and sets it as owned by a specified parent entity.
Namespace:
DlhSoft.Windows.DataAssembly: DlhSoft.Data.Core (in DlhSoft.Data.Core.dll)
Syntax
| C# |
|---|
protected internal Entity( Entity parentEntity, Object item, Entity..::.Initialization parentEntitySetInitialization, Entity..::.Initialization disposingInitialization ) |
| Visual Basic (Declaration) |
|---|
Protected Friend Sub New ( _ parentEntity As Entity, _ item As Object, _ parentEntitySetInitialization As Entity..::.Initialization, _ disposingInitialization As Entity..::.Initialization _ ) |
Parameters
- parentEntity
- Type: DlhSoft.Windows.Data..::.Entity
The parent Entity that owns this Entity.
- item
- Type: System..::.Object
Entity item to be wrapped by the Entity.
- parentEntitySetInitialization
- Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the Entity is set as owned by a parent entity.
- disposingInitialization
- Type: DlhSoft.Windows.Data..::.Entity..::.Initialization
A method to be called when the Entity is disposed.