internal bool BatchHistoryCreate(Guid tenantId, BatchItemHistory info) { try { var cmd = CreateProcedureCommand("dbo.BatchHistory_Create"); cmd.AppendGuid("@guidTenantId", tenantId); cmd.AppendGuid("@guidBatchHistoryId", info.BatchHistoryId); cmd.AppendGuid("@guidBatchItemId", info.BatchItemId); cmd.AppendXSmallText("@strEntityId", info.EntityId); cmd.AppendGuid("@guidReferenceId", info.ReferenceId); cmd.AppendTinyInt("@tinyintStatus", (byte)info.Status); if (!string.IsNullOrEmpty(info.FailedReason)) { cmd.AppendXLargeText("@strFailedReason", info.FailedReason); } cmd.AppendDateTime("@dtRunTime", info.RunTime); ExecuteCommand(cmd); return(true); } catch (SqlException e) { throw ReportAndTranslateException(e, "DataBatchItem::BatchHistory_Create"); } }
//-------------------------------------------------------------------------------------------------------------------- bool IManagerBatchItem.BatchHistoryCreate(Guid tenantId, BatchItemHistory info) { return(_admin.BatchHistoryCreate(tenantId, info)); }
bool IAdminBatchItem.BatchHistoryCreate(Guid tenantId, BatchItemHistory info) { return(_data.BatchHistoryCreate(tenantId, info)); }