Example #1
0
        /// <summary>
        /// 保存记录
        /// </summary>
        #region bool DAO_Update((T entity)
        public static bool DAO_Update(T entity)
        {
            try
            {
                ActiveRecordBase <T> .Update(entity);

                return(true);
            }
            catch (Exception ex)
            {
                //LogHelper.WriteLog(LogTag + ".Update((T entity) ", ex);
                return(false);
            }
        }
Example #2
0
 public new void Update(T t)
 {
     ActiveRecordBase.Update(t);
 }
Example #3
0
 /// <summary>
 /// 修改提交
 /// </summary>
 /// <param name="entity"></param>
 public new void Update(T entity)
 {
     ActiveRecordBase.Update(entity);
 }
Example #4
0
 public static void UpdateLater(this ActiveRecordBase record)
 {
     RealmServer.IOQueue.AddMessage(() => record.Update());                              // leave it as a Lambda Expr to get a complete stacktrace
 }
Example #5
0
 public static void UpdateLater(this ActiveRecordBase record)
 {
     ServerApp <WCell.RealmServer.RealmServer> .IOQueue.AddMessage((Action)(() => record.Update()));
 }
Example #6
0
 /// <summary>
 /// 修改实体
 /// </summary>
 public void Edit(T t)
 {
     ActiveRecordBase.Update(t);
 }
Example #7
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static void Update(T entity)
 {
     ActiveRecordBase.Update(entity);
 }