public VendorAddressCollection FetchByQuery(Query qry) { VendorAddressCollection coll = new VendorAddressCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public VendorAddressCollection FetchAll() { VendorAddressCollection coll = new VendorAddressCollection(); Query qry = new Query(VendorAddress.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public VendorAddressCollection FetchByID(object VendorID) { VendorAddressCollection coll = new VendorAddressCollection().Where("VendorID", VendorID).Load(); return(coll); }