Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #3
0
 public MappedCommand <T> CompileMerge <T>(T proto, string tableName, params string[] keyFields)
 {
     return(CompileMerge(tableName, FieldSettings.FromType(proto), keyFields, new List <string>()));
 }
Beispiel #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));
 }
Beispiel #5
0
 public MappedCommand <T> CompileInsert <T>(T proto, string tableName, params string[] ignoreFields)
 {
     return(CompileInsert(tableName, FieldSettings.FromType(proto, FromTypeOption.Default), ignoreFields));
 }
Beispiel #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));
 }
Beispiel #7
0
 public MappedCommand <T> CompileDelete <T>(T proto, string tableName, params string[] keyFields)
 {
     return(CompileDelete(tableName, FieldSettings.FromType(proto), keyFields));
 }
Beispiel #8
0
 public static FieldSettings <T>[] GetFieldSettings <T>(this IEnumerable <T> values, FromTypeOption fromTypeOption = FromTypeOption.Default)
 {
     return(FieldSettings.FromType <T>(fromTypeOption));
 }
Beispiel #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>()));
 }
Beispiel #10
0
 public MappedCommand <T> CompileDelete <T>(string tableName, FromTypeOption fromTypeOption, params string[] keyFields)
 {
     return(CompileDelete(tableName, FieldSettings.FromType <T>(fromTypeOption), keyFields));
 }
Beispiel #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));
 }
Beispiel #12
0
 public MappedCommand <T> CompileUpdate <T>(string tableName, params string[] keyFields)
 {
     return(CompileUpdate(tableName, FieldSettings.FromType <T>(), keyFields, new List <string>()));
 }
Beispiel #13
0
 public MappedCommand <T> CompileUpdate <T>(string tableName, IList <string> keyFields, IList <string> notKeyIgnoreFields)
 {
     return(CompileUpdate(tableName, FieldSettings.FromType <T>(), keyFields, notKeyIgnoreFields));
 }
Beispiel #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));
        }
Beispiel #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));
 }
Beispiel #16
0
 public static UniversalDataReader <T> ToDataReader <T>(this IAsyncEnumerable <T> values, bool caseSensitive = defaultReaderCaseSensitive)
 {
     return(new UniversalDataReader <T>(values, FieldSettings.FromType <T>(), caseSensitive));
 }
Beispiel #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>()));
 }
 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)));
 }
Beispiel #19
0
 public MappedCommand <T> CompileInsert <T>(string tableName, FromTypeOption fromTypeOption, params string[] ignoreFields)
 {
     return(CompileInsert(tableName, FieldSettings.FromType <T>(fromTypeOption), ignoreFields));
 }