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