Exemplo n.º 1
0
        /*-------------------------------------------------------------*/

        /// <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));
        }
Exemplo n.º 2
0
        /*-------------------------------------------------------------*/

        /// <summary>
        /// Creater 便捷 CreateAsync 方法
        /// </summary>
        public static int Create <M>(this XConnection conn, M m)
            where M : class, new()
        {
            return(conn.Creater <M>().Create(m));
        }
Exemplo n.º 3
0
 /// <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));
 }
Exemplo n.º 4
0
 /// <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));
 }