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