C# Class Rock.Model.HistoryService

The data access/service class for the Rock.Model.History entity. This inherits from the Service class
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
AddChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, int modifiedByPersonAliasId = null ) : void

Adds the changes.

AddChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, string caption, Type relatedModelType, int relatedEntityId, int modifiedByPersonAliasId = null ) : void

Adds the changes.

DeleteChanges ( RockContext rockContext, Type modelType, int entityId ) : void

Deletes any saved history items.

SaveChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, bool commitSave = true, int modifiedByPersonAliasId = null ) : void

Saves a list of history messages.

SaveChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, string caption, Type relatedModelType, int relatedEntityId, bool commitSave = true, int modifiedByPersonAliasId = null ) : void

Saves the changes.

Method Details

AddChanges() public static method

Adds the changes.
public static AddChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, int modifiedByPersonAliasId = null ) : void
rockContext Rock.Data.RockContext The rock context.
modelType System.Type Type of the model.
categoryGuid System.Guid The category unique identifier.
entityId int The entity identifier.
changes List The changes.
modifiedByPersonAliasId int The modified by person alias identifier.
return void

AddChanges() public static method

Adds the changes.
public static AddChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, string caption, Type relatedModelType, int relatedEntityId, int modifiedByPersonAliasId = null ) : void
rockContext Rock.Data.RockContext The rock context.
modelType System.Type Type of the model.
categoryGuid System.Guid The category unique identifier.
entityId int The entity identifier.
changes List The changes.
caption string The caption.
relatedModelType System.Type Type of the related model.
relatedEntityId int The related entity identifier.
modifiedByPersonAliasId int The modified by person alias identifier.
return void

DeleteChanges() public static method

Deletes any saved history items.
public static DeleteChanges ( RockContext rockContext, Type modelType, int entityId ) : void
rockContext Rock.Data.RockContext The rock context.
modelType System.Type Type of the model.
entityId int The entity identifier.
return void

SaveChanges() public static method

Saves a list of history messages.
public static SaveChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, bool commitSave = true, int modifiedByPersonAliasId = null ) : void
rockContext Rock.Data.RockContext The rock context.
modelType System.Type Type of the model.
categoryGuid System.Guid The category unique identifier.
entityId int The entity identifier.
changes List The changes.
commitSave bool if set to true [commit save].
modifiedByPersonAliasId int The modified by person alias identifier.
return void

SaveChanges() public static method

Saves the changes.
public static SaveChanges ( RockContext rockContext, Type modelType, System.Guid categoryGuid, int entityId, List changes, string caption, Type relatedModelType, int relatedEntityId, bool commitSave = true, int modifiedByPersonAliasId = null ) : void
rockContext Rock.Data.RockContext The rock context.
modelType System.Type Type of the model.
categoryGuid System.Guid The category unique identifier.
entityId int The entity identifier.
changes List The changes.
caption string The caption.
relatedModelType System.Type Type of the related model.
relatedEntityId int The related entity identifier.
commitSave bool if set to true [commit save].
modifiedByPersonAliasId int The modified by person alias identifier.
return void