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; }
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); }
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); }
/// <summary> /// 添加审计日志 /// </summary> /// <param name="business"></param> public void AddAuditBusiness(AuditBusiness business) { dataAccess.AddAuditBusiness(business); }
partial void DeleteAuditBusiness(AuditBusiness instance);
partial void UpdateAuditBusiness(AuditBusiness instance);
partial void InsertAuditBusiness(AuditBusiness instance);