public IQueryable <Location> AllLocations()
 {
     return(Container.Instances <Location>());
 }
 public IQueryable <Product> AutoComplete0WorkOrders([MinLength(2)] string name)
 {
     return(Container.Instances <Product>().Where(p => p.Name.Contains(name)));
 }
 public void GenerateInfoAndWarning()
 {
     Container.InformUser("Inform User of something");
     Container.WarnUser("Warn User of something else ");
 }
예제 #4
0
 public IQueryable <Product> AutoComplete0OpenPurchaseOrdersForProduct([MinLength(2)] string name)
 {
     return(Container.Instances <Product>().Where(product => product.Name.ToUpper().StartsWith(name.ToUpper())));
 }
예제 #5
0
 public IQueryable <Vendor> AutoComplete0ListPurchaseOrders([MinLength(2)] string name)
 {
     return(Container.Instances <Vendor>().Where(v => v.Name.ToUpper().StartsWith(name.ToUpper())));
 }
 public Address CreateNewAddress() {
     var _Address = Container.NewTransientInstance<Address>();
     _Address.AddressFor = this;
     return _Address;
 }