Esempio n. 1
0
 /// <summary>
 /// 更新ErrorCode
 /// </summary>
 /// <param name="domain"></param>
 public bool Update(ErrorCode errorCode)
 {
     return false;
 }
Esempio n. 2
0
        public static DBError ToDBErrorModel(Guid apiDocid, ErrorCode errorCode)
        {
            if (errorCode == null) return null;

            return new DBError
            {
                Description = errorCode.Description,
                DomainId = errorCode.DomainId.Value,
                ErrorCode = errorCode.Code,
                Message = errorCode.Message,
                APIDocs = new List<DBAPIDoc>()
                {
                    new DBAPIDoc(){
                        APIDocId = apiDocid
                    }
                }
            };
        }
Esempio n. 3
0
 /// <summary>
 /// 创建ErrorCode
 /// </summary>
 /// <param name="domain"></param>
 public bool Insert(ErrorCode errorCode, Id apiDocId = null)
 {
     return false;
 }