コード例 #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();
        }
コード例 #2
0
 public BambooCommand(string CommandText, BambooConnection Connection)
 {
     _CommandText = CommandText;
     _Connection  = Connection;
 }