示例#1
0
 private FolkeConnection(IDatabaseDriver databaseDriver, IMapper mapper, string connectionString = null)
 {
     Cache         = new Dictionary <string, IDictionary <object, object> >();
     Driver        = databaseDriver;
     connection    = databaseDriver.CreateConnection(connectionString);
     Database      = connection?.Database;
     Mapper        = mapper;
     queryProvider = new ElmQueryProvider(this);
 }
示例#2
0
 public ElmQueryable(Expression expression, ElmQueryProvider provider) : base(expression, typeof(T), provider)
 {
 }
示例#3
0
 public ElmQueryable(ElmQueryProvider provider) : base(null, typeof(T), provider)
 {
 }
示例#4
0
 public static ElmQueryable <T> Build(Expression <Action <ISelectResult <T, FolkeTuple> > > expression, ElmQueryProvider provider)
 {
     return(new ElmQueryable <T>(expression.Body, provider));
 }