コード例 #1
0
ファイル: DbQueryProvider.cs プロジェクト: itabas016/onepiece
 /// <summary>
 /// DbQueryProvider constrcutor that allows for external control of policy
 /// to allow for new types of databases.
 /// </summary>
 public DbQueryProvider(IDataProvider provider, QueryPolicy paramPolicy, TextWriter log)
 {
     _provider  = provider;
     connection = _provider.CreateConnection();
     policy     = paramPolicy;
     mapping    = policy.Mapping;
     language   = mapping.Language;
     //log = log;
 }
コード例 #2
0
ファイル: DbQueryProvider.cs プロジェクト: itabas016/onepiece
        public DbQueryProvider(IDataProvider provider)
        {
            _provider = provider;

            IQueryLanguage lang = provider.QueryLanguage;

            policy = new QueryPolicy(new ImplicitMapping(lang));

            mapping  = policy.Mapping;
            language = mapping.Language;
        }
コード例 #3
0
 public static Expression Build(QueryPolicy policy, Expression expression, Expression provider)
 {
     return(new ExecutionBuilder(policy, provider).Build(expression));
 }
コード例 #4
0
 private ExecutionBuilder(QueryPolicy policy, Expression provider)
 {
     this.policy   = policy;
     this.provider = provider;
 }