コード例 #1
0
 public static IWrappedCommand CreateSimple(this ICommandCreator creator, SimpleCommand precompiledCommand, params object[] parameters)
 {
     return(creator.CreateSimple(null, precompiledCommand, parameters));
 }
コード例 #2
0
 public static IWrappedCommand CreateSimple(this ICommandCreator creator, string commandText, params object[] parameters)
 {
     return(creator.CreateSimple(null, commandText, parameters));
 }
コード例 #3
0
 // combining Create and Execute
 public static T[] GetTable <T>(this ICommandCreator creator, string tableName) where T : new()
 {
     return(creator.CreateSimple($"select * from {tableName}").ExecuteQuery <T>().ToArray());
 }