RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

DbMaintenanceViewModel<(Of <(<'TEntity>)>)>..::..GetEntityFromDb Method

Gets the entity from database.

Namespace:  RingSoft.DbMaintenance
Assembly:  RingSoft.DbMaintenance (in RingSoft.DbMaintenance.dll)

Syntax


protected virtual TEntity GetEntityFromDb(
	TEntity newEntity,
	PrimaryKeyValue primaryKeyValue
)
Protected Overridable Function GetEntityFromDb ( _
	newEntity As TEntity, _
	primaryKeyValue As PrimaryKeyValue _
) As TEntity
protected:
virtual TEntity GetEntityFromDb(
	TEntity newEntity, 
	PrimaryKeyValue^ primaryKeyValue
)

Parameters

newEntity
Type: TEntity
The new entity.
primaryKeyValue
Type: RingSoft.DbLookup..::..PrimaryKeyValue
The primary key value.

Return Value

TEntity.