Пример #1
0
 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));
 }
Пример #2
0
 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));
 }
Пример #3
0
 public MappedCommand <T> CompileMerge <T>(T proto, string tableName, params string[] keyFields)
 {
     return(CompileMerge(tableName, FieldSettings.FromType(proto), keyFields, new List <string>()));
 }
Пример #4
0
 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));
 }
Пример #5
0
 public MappedCommand <T> CompileInsert <T>(T proto, string tableName, params string[] ignoreFields)
 {
     return(CompileInsert(tableName, FieldSettings.FromType(proto, FromTypeOption.Default), ignoreFields));
 }
Пример #6
0
 public MappedCommand <T> CompileMerge <T>(T proto, string tableName, IList <string> keyFields, IList <string> notKeyIgnoreFields)
 {
     return(CompileMerge(tableName, FieldSettings.FromType(proto), keyFields, notKeyIgnoreFields));
 }
Пример #7
0
 public MappedCommand <T> CompileDelete <T>(T proto, string tableName, params string[] keyFields)
 {
     return(CompileDelete(tableName, FieldSettings.FromType(proto), keyFields));
 }
Пример #8
0
 public static FieldSettings <T>[] GetFieldSettings <T>(this IEnumerable <T> values, FromTypeOption fromTypeOption = FromTypeOption.Default)
 {
     return(FieldSettings.FromType <T>(fromTypeOption));
 }
Пример #9
0
 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>()));
 }
Пример #10
0
 public MappedCommand <T> CompileDelete <T>(string tableName, FromTypeOption fromTypeOption, params string[] keyFields)
 {
     return(CompileDelete(tableName, FieldSettings.FromType <T>(fromTypeOption), keyFields));
 }
Пример #11
0
 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));
 }
Пример #12
0
 public MappedCommand <T> CompileUpdate <T>(string tableName, params string[] keyFields)
 {
     return(CompileUpdate(tableName, FieldSettings.FromType <T>(), keyFields, new List <string>()));
 }
Пример #13
0
 public MappedCommand <T> CompileUpdate <T>(string tableName, IList <string> keyFields, IList <string> notKeyIgnoreFields)
 {
     return(CompileUpdate(tableName, FieldSettings.FromType <T>(), keyFields, notKeyIgnoreFields));
 }
Пример #14
0
        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));
        }
Пример #15
0
 public MappedCommand <T> CompileMerge <T>(string tableName, FromTypeOption fromTypeOption, IList <string> keyFields, IList <string> notKeyIgnoreFields)
 {
     return(CompileMerge(tableName, FieldSettings.FromType <T>(fromTypeOption), keyFields, notKeyIgnoreFields));
 }
Пример #16
0
 public static UniversalDataReader <T> ToDataReader <T>(this IAsyncEnumerable <T> values, bool caseSensitive = defaultReaderCaseSensitive)
 {
     return(new UniversalDataReader <T>(values, FieldSettings.FromType <T>(), caseSensitive));
 }
Пример #17
0
 public MappedCommand <T> CompileMerge <T>(string tableName, FromTypeOption fromTypeOption, params string[] keyFields)
 {
     return(CompileMerge(tableName, FieldSettings.FromType <T>(fromTypeOption), keyFields, new List <string>()));
 }
Пример #18
0
 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)));
 }
Пример #19
0
 public MappedCommand <T> CompileInsert <T>(string tableName, FromTypeOption fromTypeOption, params string[] ignoreFields)
 {
     return(CompileInsert(tableName, FieldSettings.FromType <T>(fromTypeOption), ignoreFields));
 }