/// <summary> /// 获取复杂查询条件 /// </summary> /// <param name="c">多条件表达式</param> /// <returns>基本表达式</returns> public DMEDb_OQL1 Where(DMEDb_OQL2 c) { whereString = " Where "+c.ConditionString; paras = c.Parameters; useWhereMethod = true; //this.CurrEntity.PropertyGetting += new EventHandler<PropertyGettingEventArgs>(CurrEntity_PropertyGetting); return this; }
/// <summary> /// 使用一个实体对象初始化实体对象查询表达式 /// </summary> /// <param name="e">实体对象</param> public DMEDb_OQL(DMEDb_EntityBase e) { this.currEntity = e; this.Condition = new DMEDb_OQL2(e); this.EntityMap = e.EntityMap; this.sql_table = this.currEntity.TableName; this.currEntity.PropertyGetting += new EventHandler<PropertyGettingEventArgs>(currEntity_PropertyGetting); }