private bool LoadByPrimaryKeyDynamic(System.Int32 c1, System.String c2)
        {
            CourseQuery query = new CourseQuery();

            query.Where(query.C1 == c1, query.C2 == c2);
            return(this.Load(query));
        }
		protected void InitQuery(CourseQuery query)
		{
			query.OnLoadDelegate = this.OnQueryLoaded;
			
			if (!query.es2.HasConnection)
			{
				query.es2.Connection = ((IEntityCollection)this).Connection;
			}			
		}
		public bool Load(CourseQuery query)
		{
			this.query = query;
			InitQuery(this.query);
			return Query.Load();
		}