Exemple #1
0
        /// <summary>
        /// 测试sql特殊字符处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button4_Click(object sender, EventArgs e)
        {
            MCS.Library.SOA.DataObjects.Dynamics.ETL.Objects.ErrorLog el = CreateErrorLog();
            el.ErrorMsg = "' '";

            ErrorLogAdapter.Instance.AddErrorLog(el);
        }
Exemple #2
0
 /// <summary>
 /// 创建一个错误日志
 /// </summary>
 /// <returns></returns>
 private MCS.Library.SOA.DataObjects.Dynamics.ETL.Objects.ErrorLog CreateErrorLog()
 {
     MCS.Library.SOA.DataObjects.Dynamics.ETL.Objects.ErrorLog elErrorLog = new MCS.Library.SOA.DataObjects.Dynamics.ETL.Objects.ErrorLog()
     {
         Code          = Guid.NewGuid().ToString(),
         CreateUser    = "******",
         ErrorMsg      = "this is an error",
         ErrorLogType  = ErrorType.Single,
         ETLEntityCode = "Test",
         ExecutionTime = DateTime.Now,
         SqlStr        = "Insert to"
     };
     return(elErrorLog);
 }