Exemple #1
0
 public static async Task <int> CommandAsync(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null)
 {
     using (var cmd = (DbCommand)CommandFactory.CreateCommand(connection, command.Value, config))
     {
Exemple #2
0
 public static IEnumerable <T> Query <T>(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null) where T : new()
 {
     using (var cmd = CommandFactory.CreateCommand(connection, command.Value, config))
     {
Exemple #3
0
 public static async Task <T> QuerySingleAsync <T>(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null) where T : new()
 {
     using (var cmd = (DbCommand)CommandFactory.CreateCommand(connection, command.Value, config))
     {
Exemple #4
0
 public static dynamic QuerySingle(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null)
 {
     using (var cmd = CommandFactory.CreateCommand(connection, command.Value, config))
     {