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); }
public ElmQueryable(Expression expression, ElmQueryProvider provider) : base(expression, typeof(T), provider) { }
public ElmQueryable(ElmQueryProvider provider) : base(null, typeof(T), provider) { }
public static ElmQueryable <T> Build(Expression <Action <ISelectResult <T, FolkeTuple> > > expression, ElmQueryProvider provider) { return(new ElmQueryable <T>(expression.Body, provider)); }