public FormcodeCollection FetchAll() { FormcodeCollection coll = new FormcodeCollection(); Query qry = new Query(Formcode.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
/// <summary> /// Reloads the cached lookup codes. Returns the number of codes. /// </summary> /// <returns></returns> protected int ReloadLookupCodes() { this.lookupCodes = null; return(this.LookupCodes.Count); }
public FormcodeCollection FetchByQuery(Query qry) { FormcodeCollection coll = new FormcodeCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public FormcodeCollection FetchByID(object Id) { FormcodeCollection coll = new FormcodeCollection().Where("id", Id).Load(); return coll; }
/// <summary> /// Reloads the cached lookup codes. Returns the number of codes. /// </summary> /// <returns></returns> protected int ReloadLookupCodes() { this.lookupCodes = null; return this.LookupCodes.Count; }