private bool LoadByPrimaryKeyDynamic(System.String sid1, System.String sid2, System.Int32 cid1, System.String cid2) { StudentClassQuery query = new StudentClassQuery(); query.Where(query.Sid1 == sid1, query.Sid2 == sid2, query.Cid1 == cid1, query.Cid2 == cid2); return(this.Load(query)); }
protected void InitQuery(StudentClassQuery query) { query.OnLoadDelegate = this.OnQueryLoaded; if (!query.es2.HasConnection) { query.es2.Connection = ((IEntityCollection)this).Connection; } }
public bool Load(StudentClassQuery query) { this.query = query; InitQuery(this.query); return(Query.Load()); }