Click or drag to resize

IBusinessRulesServiceTModelBeforeInsert Method (TModel)

Called before an insert occurs

Namespace:  SanteDB.Core.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
TModel BeforeInsert(
	TModel data
)

Parameters

data
Type: TModel
The data which is to be inserted

Return Value

Type: TModel
The data which is to be passed to the persistence layer
Remarks
The data returned form this method is what will be committed to the database regardless of the data passed in data. This method is useful for assigning new identifiers, tags, home facilities, or other information.
See Also