Method | Description | |
---|---|---|
DbContext ( ) : System |
Initializes a new instance of the DbContext class.
|
|
DbContext ( string nameOrConnectionString ) : System |
Initializes a new instance of the DbContext class.
|
|
SaveChanges ( ) : int |
Saves all changes made in this context to the underlying database.
|
|
SaveChanges ( bool disablePrePostProcessing ) : int |
Saves all changes made in this context to the underlying database. The default pre and post processing can also optionally be disabled. This would disable audit records being created, workflows being triggered, and any PreSaveChanges() methods being called for changed entities.
|
|
WrapTransaction ( System.Action action ) : void |
Wraps code in a BeginTransaction and CommitTransaction
|
Method | Description | |
---|---|---|
RockPostSave ( List |
Creates audit logs and/or triggers workflows for items that were changed
|
|
RockPreSave ( |
Updates the Created/Modified data for any model being created or modified
|
Method | Description | |
---|---|---|
AuditClass ( |
||
AuditProperty ( |
||
GetAuditDetails ( |
||
IsQualifierMatch ( ContextItem item, PropertyInfo>.Dictionary |
Determines whether the entity matches the current and/or previous qualifier values. If
|
|
TriggerWorkflows ( ContextItem item, WorkflowTriggerType triggerType, PersonAlias personAlias ) : bool |
Triggers all the workflows of the given triggerType for the given entity item.
|
public DbContext ( string nameOrConnectionString ) : System | ||
nameOrConnectionString | string | Either the database name or a connection string. |
return | System |
protected RockPostSave ( List |
||
updatedItems | List |
The updated items. |
personAlias | PersonAlias | The person alias. |
enableAuditing | bool | if set to |
return | void |
protected RockPreSave ( |
||
dbContext | The database context. | |
personAlias | PersonAlias | The person alias. |
enableAuditing | bool | if set to |
return | List |
public SaveChanges ( bool disablePrePostProcessing ) : int | ||
disablePrePostProcessing | bool | if set to |
return | int |
public WrapTransaction ( System.Action action ) : void | ||
action | System.Action | The action. |
return | void |