示例#1
0
 public Guid AddAuditBusiness(AuditBusiness auditBusiness)
 {
     Guid newId = Guid.NewGuid();
     try
     {
         auditBusiness.OID = newId.ToString();
         execptionDC.AuditBusiness.InsertOnSubmit(auditBusiness);
         execptionDC.SubmitChanges(System.Data.Linq.ConflictMode.ContinueOnConflict);
     }
     catch
     {
         newId = Guid.Empty;
     }
     return newId;
 }
示例#2
0
        public Guid AddAuditBusiness(AuditBusiness auditBusiness)
        {
            Guid newId = Guid.NewGuid();

            try
            {
                auditBusiness.OID = newId.ToString();
                execptionDC.AuditBusiness.InsertOnSubmit(auditBusiness);
                execptionDC.SubmitChanges(System.Data.Linq.ConflictMode.ContinueOnConflict);
            }
            catch
            {
                newId = Guid.Empty;
            }
            return(newId);
        }
示例#3
0
        public void AddAuditBusiness(string hostName, string messageBody, string messageID, string methodName, string reqBeginTime, string serviceName, int status, string callBeginTime, string callEndTime)
        {
            AuditBusiness business = new AuditBusiness();
            AuditLogic auditLogic = new AuditLogic();

            business.HostName = hostName;
            business.MessageID = messageID;
            business.MethodName = methodName;
            business.ReqBeginTime = reqBeginTime;
            business.ReqEndTime = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            business.ServiceName = serviceName;
            business.Status = status;
            business.CallBeginTime = callBeginTime;
            business.CallEndTime = callEndTime;

            auditLogic.AddAuditBusiness(business);
        }
示例#4
0
文件: AuditLogic.cs 项目: vebin/soa
 /// <summary>
 /// 添加审计日志
 /// </summary>
 /// <param name="business"></param>
 public void AddAuditBusiness(AuditBusiness business)
 {
     dataAccess.AddAuditBusiness(business);
 }
示例#5
0
 partial void DeleteAuditBusiness(AuditBusiness instance);
示例#6
0
 partial void UpdateAuditBusiness(AuditBusiness instance);
示例#7
0
 partial void InsertAuditBusiness(AuditBusiness instance);
 partial void DeleteAuditBusiness(AuditBusiness instance);
 partial void UpdateAuditBusiness(AuditBusiness instance);
 partial void InsertAuditBusiness(AuditBusiness instance);