Esempio n. 1
0
        public BambooDataReader(string CommandText, BambooConnection Connection)
        {
            IExpressionGenerator gen = new IronyExpressionGenerator(CommandText, Connection.Mapping);

            FieldsList = gen.SelectClause;

            IEnumerable <object> LinqRequest = Connection.Mapping.GetFieldInfo(gen.FromTable).GetValue(Connection.Engine.PrevalentSystem) as IEnumerable <object>;

            LinqRequest = LinqRequest.Select(gen.SelectFunction);
            if (gen.WhereFunction != null)
            {
                LinqRequest = LinqRequest.Where(gen.WhereFunction);
            }
            Enumerator = LinqRequest.GetEnumerator();
        }
Esempio n. 2
0
 public BambooCommand(string CommandText, BambooConnection Connection)
 {
     _CommandText = CommandText;
     _Connection  = Connection;
 }