public ShipperCollection FetchAll()
 {
     ShipperCollection coll = new ShipperCollection();
     Query qry = new Query(Shipper.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
        public static ShipperCollection ToDtoCollection(this EntityCollection <ShipperEntity> entities)
        {
            OnBeforeEntityCollectionToDtoCollection(entities);
            var seenObjects = new Hashtable();
            var collection  = new ShipperCollection();

            foreach (var entity in entities)
            {
                collection.Add(entity.ToDto(seenObjects, new Hashtable()));
            }
            OnAfterEntityCollectionToDtoCollection(entities, collection);
            return(collection);
        }
 public ShipperCollection FetchByQuery(Query qry)
 {
     ShipperCollection coll = new ShipperCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
 public ShipperCollection FetchByID(object ShipperID)
 {
     ShipperCollection coll = new ShipperCollection().Where("ShipperID", ShipperID).Load();
     return coll;
 }
 static partial void OnAfterEntityCollectionToDtoCollection(EntityCollection <ShipperEntity> entities, ShipperCollection dtos);