Beispiel #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);
            }
        }
Beispiel #2
0
 public new void Update(T t)
 {
     ActiveRecordBase.Update(t);
 }
Beispiel #3
0
 /// <summary>
 /// 修改提交
 /// </summary>
 /// <param name="entity"></param>
 public new void Update(T entity)
 {
     ActiveRecordBase.Update(entity);
 }
Beispiel #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
 }
Beispiel #5
0
 public static void UpdateLater(this ActiveRecordBase record)
 {
     ServerApp <WCell.RealmServer.RealmServer> .IOQueue.AddMessage((Action)(() => record.Update()));
 }
Beispiel #6
0
 /// <summary>
 /// 修改实体
 /// </summary>
 public void Edit(T t)
 {
     ActiveRecordBase.Update(t);
 }
Beispiel #7
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static void Update(T entity)
 {
     ActiveRecordBase.Update(entity);
 }