C# Класс Rock.Model.HistoryService

The data access/service class for the Rock.Model.History entity. This inherits from the Service class
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddChanges() публичный статический метод

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.
Результат void

AddChanges() публичный статический метод

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.
Результат void

DeleteChanges() публичный статический метод

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.
Результат void

SaveChanges() публичный статический метод

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.
Результат void

SaveChanges() публичный статический метод

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.
Результат void