private bool LoadByPrimaryKeyDynamic(System.Int32 id) { ShippingServiceQuery query = new ShippingServiceQuery(); query.Where(query.Id == id); return(this.Load(query)); }
public static ShippingService Find(int storeId, ShippingProviderType providerType) { var q = new ShippingServiceQuery(); q.Where(q.StoreId == storeId, q.ShippingProviderType == (short)providerType); var service = new ShippingService(); if (service.Load(q)) { return(service); } return(null); }