Beispiel #1
0
        public QueryBuilderOptions GetQueryBuilderOptions()
        {
            var result = new QueryBuilderOptions();

            result.AddConnection <SqlConnection>("DefaultConnection", Constants.AlessaConnectionString);
            result.AddConnection <SqlConnection>("TestConnection1", Constants.AlessaConnectionString);
            result.AddConnection <SqlConnection>("TestConnection2", Constants.AlessaConnectionString);

            return(result);
        }
Beispiel #2
0
 internal Query(QueryBuilderOptions options, Dictionary <string, object?> parameters, StringBuilder sb)
 {
     Options    = options;
     Parameters = parameters;
     Builder    = sb;
 }
Beispiel #3
0
 public Query(QueryBuilderOptions options) : this(options, new Dictionary <string, object?>(), new StringBuilder())
 {
 }
Beispiel #4
0
 private QueryBuilder(QueryBuilderOptions options, Query query)
 {
     _options = options;
     _query   = query;
 }
Beispiel #5
0
 internal QueryBuilder(QueryBuilderOptions options) : this(options, new Query(options))
 {
 }
Beispiel #6
0
 public static IInitialQueryBuilder Init(QueryBuilderOptions options) => new QueryBuilder(options);
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of <see cref="SchemaContext"/> class.
 /// </summary>
 /// <param name="queryBuilderOptions">Query builder options.</param>
 /// <param name="queryBuilderDbContext">Query builder database context.</param>
 public SchemaContext(QueryBuilderOptions queryBuilderOptions, QueryBuilderDbContext queryBuilderDbContext)
 {
     this.QueryBuilderDbContext = queryBuilderDbContext;
     this.QueryBuilderOptions   = queryBuilderOptions;
 }