/*-------------------------------------------------------------*/ /// <summary> /// Creater 便捷 CreateBatchAsync 方法 /// </summary> public static int CreateBatch <M>(this XConnection conn, IEnumerable <M> mList) where M : class, new() { return(conn.Creater <M>().CreateBatch(mList)); }
/*-------------------------------------------------------------*/ /// <summary> /// Creater 便捷 CreateAsync 方法 /// </summary> public static int Create <M>(this XConnection conn, M m) where M : class, new() { return(conn.Creater <M>().Create(m)); }
/// <summary> /// Creater 便捷 CreateBatchAsync 方法 /// </summary> public static async Task <int> CreateBatchAsync <M>(this XConnection conn, IEnumerable <M> mList) where M : class, new() { return(await conn.Creater <M>().CreateBatchAsync(mList)); }
/// <summary> /// Creater 便捷 CreateAsync 方法 /// </summary> public static async Task <int> CreateAsync <M>(this XConnection conn, M m) where M : class, new() { return(await conn.Creater <M>().CreateAsync(m)); }