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(); }
public BambooCommand(string CommandText, BambooConnection Connection) { _CommandText = CommandText; _Connection = Connection; }