public static IWrappedCommand CreateSimple(this ICommandCreator creator, SimpleCommand precompiledCommand, params object[] parameters) { return(creator.CreateSimple(null, precompiledCommand, parameters)); }
public static IWrappedCommand CreateSimple(this ICommandCreator creator, string commandText, params object[] parameters) { return(creator.CreateSimple(null, commandText, parameters)); }
// 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()); }