public IQueryable <Person> AutoComplete0CreateNewEmployeeFromContact([MinLength(2)] string name)
 {
     return(Container.Instances <Person>().Where(p => p.LastName.ToUpper().StartsWith(name.ToUpper())));
 }
示例#2
0
 public IQueryable <SpecialOffer> AllSpecialOffers()
 {
     return(Container.Instances <SpecialOffer>().OrderByDescending(so => so.ModifiedDate));
 }
 public IQueryable <Shift> Shifts()
 {
     return(Container.Instances <Shift>());
 }
 public IQueryable <Location> AllLocations()
 {
     return(Container.Instances <Location>());
 }
示例#5
0
 public IQueryable <Customer> AutoComplete0FindCustomer([MinLength(3)] string matching)
 {
     return(Container.Instances <Customer>().Where(c => c.AccountNumber.Contains(matching)));
 }
示例#6
0
 public ShipMethod DefaultShipMethod()
 {
     return(Container.Instances <ShipMethod>().First());
 }
示例#7
0
 public IQueryable <Product> AutoComplete0OpenPurchaseOrdersForProduct([MinLength(2)] string name)
 {
     return(Container.Instances <Product>().Where(product => product.Name.ToUpper().StartsWith(name.ToUpper())));
 }
示例#8
0
 public IQueryable <PurchaseOrderHeader> AllOpenPurchaseOrders()
 {
     return(Container.Instances <PurchaseOrderHeader>().Where(poh => poh.Status <= 2));
 }
        public IList <CreditCard> ListCreditCards()
        {
            int id = this.BusinessEntityID;

            return(Container.Instances <PersonCreditCard>().Where(pcc => pcc.PersonID == id).Select(pcc => pcc.CreditCard).ToList());
        }
示例#10
0
        public IQueryable <CreditCard> RecentCreditCards()
        {
            int id = this.BusinessEntityID;

            return(Container.Instances <PersonCreditCard>().Where(pcc => pcc.PersonID == id).Select(pcc => pcc.CreditCard).OrderByDescending(cc => cc.ModifiedDate));
        }
示例#11
0
 public IQueryable <PurchaseOrderHeader> AllPurchaseOrders()
 {
     return(Container.Instances <PurchaseOrderHeader>().OrderByDescending(poh => poh.ModifiedDate));
 }
示例#12
0
        public void PopulateUsingKeys(string[] keys)
        {
            int customerId = int.Parse(keys[0]);

            Root = Container.Instances <Customer>().Single(c => c.CustomerId == customerId);
        }
 public IQueryable <SalesTaxRate> SalesTaxRates()
 {
     return(Container.Instances <SalesTaxRate>());
 }
 public IQueryable <SalesPerson> AutoComplete0ListAccountsForSalesPerson([MinLength(2)] string name)
 {
     return(Container.Instances <SalesPerson>().Where(sp => sp.EmployeeDetails.PersonDetails.LastName.ToUpper().StartsWith(name.ToUpper())));
 }
 public IQueryable <Department> ListAllDepartments()
 {
     return(Container.Instances <Department>());
 }
 public IQueryable <AddressType> AllAddressTypes()
 {
     return(Container.Instances <AddressType>());
 }
示例#17
0
 public CurrencyRate FindRate(string currency, string currency1)
 {
     return(Container.Instances <CurrencyRate>().FirstOrDefault(cr => cr.Currency.Name == currency && cr.Currency1.Name == currency1));
 }
 public IList <BusinessEntityAddress> RecentAddressLinks()
 {
     return(Container.Instances <BusinessEntityAddress>().OrderByDescending(a => a.ModifiedDate).Take(10).ToList());
 }
示例#19
0
 public IQueryable <Vendor> AutoComplete0ListPurchaseOrders([MinLength(2)] string name)
 {
     return(Container.Instances <Vendor>().Where(v => v.Name.ToUpper().StartsWith(name.ToUpper())));
 }
示例#20
0
 public IQueryable <SpecialOffer> AutoComplete0AssociateSpecialOfferWithProduct([MinLength(2)] string name)
 {
     return(Container.Instances <SpecialOffer>().Where(specialOffer => specialOffer.Description.ToUpper().StartsWith(name.ToUpper())));
 }
示例#21
0
 public virtual IQueryable <ProductModel> AutoCompleteProductModel(string match)
 {
     return(Container.Instances <ProductModel>().Where(pm => pm.Name.ToUpper().Contains(match.ToUpper())));
 }
示例#22
0
 public IQueryable <Product> AutoComplete1AssociateSpecialOfferWithProduct([MinLength(2)] string name)
 {
     return(Container.Instances <Product>().Where(product => product.Name.ToUpper().StartsWith(name.ToUpper())));
 }
 public IQueryable <Product> AutoComplete0WorkOrders([MinLength(2)] string name)
 {
     return(Container.Instances <Product>().Where(p => p.Name.Contains(name)));
 }
 public IQueryable <Vendor> FindVendorByName(string name)
 {
     return(Container.Instances <Vendor>().Where(v => v.Name == name).OrderBy(v => v.Name));
 }