public MappedCommand <T> CompileMapped <T>(T proto, string commandText, FromTypeOption fromTypeOption = FromTypeOption.Default, bool caseSensitiveParamsMatching = false) { return(new MappedCommand <T>(contextProvider, commandText, contextProvider.ParamsFromCommandText(commandText), FieldSettings.FromType(proto, fromTypeOption), caseSensitiveParamsMatching)); }
public MappedCommand <T> CompileProcedure <T>(T proto, string name, IList <string> paramNames, FromTypeOption fromTypeOption = FromTypeOption.Default, bool caseSensitiveParamsMatching = false) { return(new MappedCommand <T>(contextProvider, name, paramNames, FieldSettings.FromType(proto, fromTypeOption), caseSensitiveParamsMatching, CommandType.StoredProcedure)); }
public MappedCommand <T> CompileMerge <T>(T proto, string tableName, params string[] keyFields) { return(CompileMerge(tableName, FieldSettings.FromType(proto), keyFields, new List <string>())); }
public MappedCommand <T> CompileMapped <T>(string commandText, IList <string> paramNames, FromTypeOption fromTypeOption = FromTypeOption.Default, bool caseSensitiveParamsMatching = false) { return(new MappedCommand <T>(contextProvider, commandText, paramNames, FieldSettings.FromType <T>(fromTypeOption), caseSensitiveParamsMatching)); }
public MappedCommand <T> CompileInsert <T>(T proto, string tableName, params string[] ignoreFields) { return(CompileInsert(tableName, FieldSettings.FromType(proto, FromTypeOption.Default), ignoreFields)); }
public MappedCommand <T> CompileMerge <T>(T proto, string tableName, IList <string> keyFields, IList <string> notKeyIgnoreFields) { return(CompileMerge(tableName, FieldSettings.FromType(proto), keyFields, notKeyIgnoreFields)); }
public MappedCommand <T> CompileDelete <T>(T proto, string tableName, params string[] keyFields) { return(CompileDelete(tableName, FieldSettings.FromType(proto), keyFields)); }
public static FieldSettings <T>[] GetFieldSettings <T>(this IEnumerable <T> values, FromTypeOption fromTypeOption = FromTypeOption.Default) { return(FieldSettings.FromType <T>(fromTypeOption)); }
public MappedCommand <T> CompileUpdate <T>(T proto, string tableName, FromTypeOption fromTypeOption, params string[] keyFields) { return(CompileUpdate(tableName, FieldSettings.FromType(proto, fromTypeOption), keyFields, new List <string>())); }
public MappedCommand <T> CompileDelete <T>(string tableName, FromTypeOption fromTypeOption, params string[] keyFields) { return(CompileDelete(tableName, FieldSettings.FromType <T>(fromTypeOption), keyFields)); }
public MappedCommand <T> CompileUpdate <T>(T proto, string tableName, FromTypeOption fromTypeOption, IList <string> keyFields, IList <string> notKeyIgnoreFields) { return(CompileUpdate(tableName, FieldSettings.FromType(proto, fromTypeOption), keyFields, notKeyIgnoreFields)); }
public MappedCommand <T> CompileUpdate <T>(string tableName, params string[] keyFields) { return(CompileUpdate(tableName, FieldSettings.FromType <T>(), keyFields, new List <string>())); }
public MappedCommand <T> CompileUpdate <T>(string tableName, IList <string> keyFields, IList <string> notKeyIgnoreFields) { return(CompileUpdate(tableName, FieldSettings.FromType <T>(), keyFields, notKeyIgnoreFields)); }
public MappedCommand <T> CompileProcedure <T>(T proto, string name, FromTypeOption fromTypeOption = FromTypeOption.Default, bool caseSensitiveParamsMatching = false) { var settings = FieldSettings.FromType(proto, fromTypeOption); return(new MappedCommand <T>(contextProvider, name, contextProvider.ParamsFromSettings(settings), settings, caseSensitiveParamsMatching, CommandType.StoredProcedure)); }
public MappedCommand <T> CompileMerge <T>(string tableName, FromTypeOption fromTypeOption, IList <string> keyFields, IList <string> notKeyIgnoreFields) { return(CompileMerge(tableName, FieldSettings.FromType <T>(fromTypeOption), keyFields, notKeyIgnoreFields)); }
public static UniversalDataReader <T> ToDataReader <T>(this IAsyncEnumerable <T> values, bool caseSensitive = defaultReaderCaseSensitive) { return(new UniversalDataReader <T>(values, FieldSettings.FromType <T>(), caseSensitive)); }
public MappedCommand <T> CompileMerge <T>(string tableName, FromTypeOption fromTypeOption, params string[] keyFields) { return(CompileMerge(tableName, FieldSettings.FromType <T>(fromTypeOption), keyFields, new List <string>())); }
public static IWrappedCommand CreateInsertWithOutput <T>(this ICommandCreator creator, string tableName, T value, QueryOptions queryOptions, IList <string> ignoreFields, params string[] outputFields) { return(creator.Set(x => x.CommandCompilator.CompileInsertWithOutput <T>(tableName, FieldSettings.FromType <T>(FromTypeOption.Default), ignoreFields, outputFields).Create(x, value, queryOptions))); }
public MappedCommand <T> CompileInsert <T>(string tableName, FromTypeOption fromTypeOption, params string[] ignoreFields) { return(CompileInsert(tableName, FieldSettings.FromType <T>(fromTypeOption), ignoreFields)); }