private bool LoadByPrimaryKeyDynamic(System.String userID, System.String userGroupID) { esAppUserUserGroupQuery query = this.GetDynamicQuery(); query.Where(query.UserID == userID, query.UserGroupID == userGroupID); return(query.Load()); }
protected void InitQuery(esAppUserUserGroupQuery query) { query.OnLoadDelegate = this.OnQueryLoaded; query.es2.Connection = ((IEntityCollection)this).Connection; }