Exemple #1
0
 /// <summary>
 /// Execute Entities
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="cmdText"></param>
 /// <param name="commandType"></param>
 /// <param name="transaction"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static IEnumerable <T> ExecuteEntities <T>(this SQLiteConnection conn, string cmdText, CommandType commandType, SQLiteTransaction transaction) where T : new()
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteEntities <T>(cmdText, null, commandType, transaction));
 }
Exemple #2
0
 /// <summary>
 /// Execute Entities
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="cmdText"></param>
 /// <param name="parameters"></param>
 /// <param name="commandType"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static IEnumerable <T> ExecuteEntities <T>(this SQLiteConnection conn, string cmdText, SQLiteParameter[] parameters, CommandType commandType) where T : new()
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteEntities <T>(cmdText, parameters, commandType, null));
 }