예제 #1
0
        public override void WriteErrorLog(SyncSession syncSession, SchemaObjectBase scObj, Exception ex)
        {
            CheckLogPresent();
            this.log.NumberOfExceptions++;
            var detail = new SqlIncomeSyncLogDetail();
            detail.LogDetailID = UuidHelper.NewUuidString();
            detail.LogID = this.log.LogID;
            detail.SCObjectID = scObj.ID;
            detail.Summary = ex.Message;
            detail.Detail = ex.ToString();
            detail.ActionType = SqlIncomeSyncLogDetailStatus.Update;
            Adapters.SqlIncomeLogDetailAdapter.Instance.Update(detail);

        }
예제 #2
0
        public override void WriteErrorLog(SyncSession syncSession, SchemaObjectBase scObj, Exception ex)
        {
            CheckLogPresent();
            this.log.NumberOfExceptions++;
            var detail = new SqlIncomeSyncLogDetail();

            detail.LogDetailID = UuidHelper.NewUuidString();
            detail.LogID       = this.log.LogID;
            detail.SCObjectID  = scObj.ID;
            detail.Summary     = ex.Message;
            detail.Detail      = ex.ToString();
            detail.ActionType  = SqlIncomeSyncLogDetailStatus.Update;
            Adapters.SqlIncomeLogDetailAdapter.Instance.Update(detail);
        }