private WhereClauseBuilder(WhereClauseBuilder <T> root) { _dialectSettings = root.DialectSettings; _tuples = new List <KeyValuePair <string, string> >(); _dynParms = new DynamicParameters(); _root = root; }
public WhereClauseBuilder(StorageDialectSettings dialectSettings) { _dialectSettings = dialectSettings ?? throw new ArgumentNullException(nameof(dialectSettings)); _tuples = new List <KeyValuePair <string, string> >(); _dynParms = new DynamicParameters(); _root = null; }
public static string GetParameterName(this StorageDialectSettings dialectSettings, string name) { if (dialectSettings == null) { throw new ArgumentNullException(nameof(dialectSettings)); } return($"{dialectSettings.ParameterPrefix}{name}"); }
public static string GetEscapeName(this StorageDialectSettings dialectSettings, string name) { if (dialectSettings == null) { throw new ArgumentNullException(nameof(dialectSettings)); } return($"{dialectSettings.LeadingEscape}{name}{dialectSettings.TailingEscape}"); }
internal SortClauseBuilder(ISortClause obj, IStoreMapping storeMapping, StorageDialectSettings dialectSettings) { _obj = obj ?? throw new ArgumentNullException(nameof(obj)); _storeMapping = storeMapping ?? throw new ArgumentNullException(nameof(storeMapping)); _dialectSettings = dialectSettings ?? throw new ArgumentNullException(nameof(dialectSettings)); _body = new Dictionary <string, Orderby>(); //_classMap = ClassMapCached.Fetch<TKey, TEntity>(); this._classMap = ClassMapCached <TKey, TEntity> .ClassMap; }
internal WhereClauseBuilder(IWhereClause obj, IStoreMapping storeMapping, StorageDialectSettings dialectSettings) { _obj = obj ?? throw new ArgumentNullException(nameof(obj)); _storeMapping = storeMapping ?? throw new ArgumentNullException(nameof(storeMapping)); _dialectSettings = dialectSettings ?? throw new ArgumentNullException(nameof(dialectSettings)); _builder = new StringBuilder(); _parameters = new Dictionary <string, object>(); _writeAnd = () => this.And(); _writeOr = () => this.Or(); // this._classMap = ClassMapCached.Fetch<TKey, TEntity>(); this._classMap = ClassMapCached <TKey, TEntity> .ClassMap; }
public WhereClause(IStoreMapping storeMapping, StorageDialectSettings dialectSettings) { _storeMapping = storeMapping ?? throw new ArgumentNullException(nameof(storeMapping)); _dialectSettings = dialectSettings ?? throw new ArgumentNullException(nameof(dialectSettings)); }
public SqlServerEntityStore(IStoreMapping mapping, StorageDialectSettings dialectSettings) : base(mapping, dialectSettings) { }
public MySqlConstructService(StorageDialectSettings dialectSettings) { _dialectSettings = dialectSettings ?? throw new ArgumentNullException(nameof(dialectSettings)); }
protected SqlServerEntityStore(IStoreMapping storeMapping, StorageDialectSettings dialectSettings) : base(storeMapping, dialectSettings) { }
public static string GetParameterName(this StorageDialectSettings dialectSettings) => GetParameterName(dialectSettings, CommonHelper.GetUniqueString());
public static string GetParameterName(this StorageDialectSettings dialectSettings, MemberInfo member) => GetParameterName(dialectSettings, member.Name);
public static string GetEscapeName(this StorageDialectSettings dialectSettings, Type type) => GetEscapeName(dialectSettings, type.Name);
public static string GetEscapeName <T>(this StorageDialectSettings dialectSettings, Expression <Func <T, object> > member) => GetEscapeName(dialectSettings, member.GetMemberName());
public OrderbyClauseBuilder(StorageDialectSettings dialectSettings) { _dialectSettings = dialectSettings ?? throw new ArgumentNullException(nameof(dialectSettings)); _tuples = new List <KeyValuePair <string, string> >(); }