private bool LoadByPrimaryKeyDynamic(System.String s1, System.String s2) { StudentQuery query = new StudentQuery(); query.Where(query.S1 == s1, query.S2 == s2); return(this.Load(query)); }
protected void InitQuery(StudentQuery query) { query.OnLoadDelegate = this.OnQueryLoaded; if (!query.es2.HasConnection) { query.es2.Connection = ((IEntityCollection)this).Connection; } }
public bool Load(StudentQuery query) { this.query = query; InitQuery(this.query); return(Query.Load()); }