Example #1
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="entity">实体对象</param>
 public new void Create(T entity)
 {
     ActiveRecordBase.Create(entity);
 }
Example #2
0
 public virtual void Add(T t)
 {
     ActiveRecordBase.Create(t);
 }
Example #3
0
 /// <summary>
 /// 新建实体
 /// </summary>
 public void Add(T entity)
 {
     ActiveRecordBase.Create(entity);
 }
Example #4
0
 public static void CreateLater(this ActiveRecordBase record)
 {
     RealmServer.IOQueue.AddMessage(() => record.Create());                              // leave it as a Lambda Expr to get a complete stacktrace
 }
Example #5
0
 public static void CreateLater(this ActiveRecordBase record)
 {
     ServerApp <WCell.RealmServer.RealmServer> .IOQueue.AddMessage((Action)(() => record.Create()));
 }
Example #6
0
 /// <summary>
 /// 新增实体
 /// </summary>
 public new void Create(T t)
 {
     ActiveRecordBase.Create(t);
 }
Example #7
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static T Insert(T entity)
 {
     ActiveRecordBase.Create(entity);
     return(entity);
 }