Exemple #1
0
 /// <summary>
 /// Get all the Orderses of the Employee.
 /// </summary>
 /// <param name="employeeID">ID of Employee</param>
 /// <returns></returns>
 public List <OrdersView> GetAllWithEmployee(int employeeID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrdersView.Properties.EmployeeID, employeeID)));
 }
Exemple #2
0
 public virtual TView GetObject(object id)
 {
     return(ObjectViewDAO.GetObject(id));
 }
Exemple #3
0
 /// <summary>
 /// Get all the Orderses by OrderDate.
 /// </summary>
 /// <param name="orderDate">OrderDate of the Orders</param>
 /// <returns></returns>
 public List <OrdersView> GetAllByOrderDate(DateTime orderDate)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrdersView.Properties.OrderDate, orderDate)));
 }
Exemple #4
0
 /// <summary>
 /// Get all the Orderses by ShipPostalCode.
 /// </summary>
 /// <param name="shipPostalCode">ShipPostalCode of the Orders</param>
 /// <returns></returns>
 public List <OrdersView> GetAllByShipPostalCode(string shipPostalCode)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrdersView.Properties.ShipPostalCode, shipPostalCode)));
 }
Exemple #5
0
 /// <summary>
 /// Get all the Employeeses by PostalCode.
 /// </summary>
 /// <param name="postalCode">PostalCode of the Employees</param>
 /// <returns></returns>
 public List <EmployeesView> GetAllByPostalCode(string postalCode)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(EmployeesView.Properties.PostalCode, postalCode)));
 }
Exemple #6
0
 /// <summary>
 /// Get all the Categorieses by CategoryName.
 /// </summary>
 /// <param name="categoryName">CategoryName of the Categories</param>
 /// <returns></returns>
 public List <Categories> GetAllByCategoryName(string categoryName)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(Categories.Properties.CategoryName, categoryName)));
 }
Exemple #7
0
 public virtual List <TView> SearchSection(Condition condition, SectionSet section)
 {
     return(ObjectViewDAO.SearchSection(condition, section));
 }
 /// <summary>
 /// Get all the OrderDetailses of the Product.
 /// </summary>
 /// <param name="productID">ID of Product</param>
 /// <returns></returns>
 public List <OrderDetailsView> GetAllWithProduct(int productID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrderDetailsView.Properties.ProductID, productID)));
 }
Exemple #9
0
 public virtual TView SearchOne(Condition condition)
 {
     return(ObjectViewDAO.SearchOne(condition));
 }
Exemple #10
0
 public virtual List <TView> Search(Condition condition)
 {
     return(ObjectViewDAO.Search(condition));
 }
Exemple #11
0
 public virtual int Count(Condition condition)
 {
     return(ObjectViewDAO.Count(condition));
 }
Exemple #12
0
 public virtual bool Exists(Condition condition)
 {
     return(ObjectViewDAO.Exists(condition));
 }
Exemple #13
0
 public virtual bool ExistsID(object id)
 {
     return(ObjectViewDAO.Exists(id));
 }
Exemple #14
0
 /// <summary>
 /// Get all the Productses of the Supplier.
 /// </summary>
 /// <param name="supplierID">ID of Supplier</param>
 /// <returns></returns>
 public List <ProductsView> GetAllWithSupplier(int supplierID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(ProductsView.Properties.SupplierID, supplierID)));
 }
Exemple #15
0
 /// <summary>
 /// Get all the Territorieses of the Region.
 /// </summary>
 /// <param name="regionID">ID of Region</param>
 /// <returns></returns>
 public List <TerritoriesView> GetAllWithRegion(int regionID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(TerritoriesView.Properties.RegionID, regionID)));
 }
Exemple #16
0
 /// <summary>
 /// Get all the OrderDetailses of the Order.
 /// </summary>
 /// <param name="orderID">ID of Order</param>
 /// <returns></returns>
 public List <OrderDetailsView> GetAllWithOrder(int orderID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrderDetailsView.Properties.OrderID, orderID)));
 }
Exemple #17
0
 /// <summary>
 /// Get all the Customerses by City.
 /// </summary>
 /// <param name="city">City of the Customers</param>
 /// <returns></returns>
 public List <Customers> GetAllByCity(string city)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(Customers.Properties.City, city)));
 }
Exemple #18
0
 /// <summary>
 /// Get all the Employeeses by LastName.
 /// </summary>
 /// <param name="lastName">LastName of the Employees</param>
 /// <returns></returns>
 public List <EmployeesView> GetAllByLastName(string lastName)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(EmployeesView.Properties.LastName, lastName)));
 }
Exemple #19
0
 /// <summary>
 /// Get all the Customerses by Region.
 /// </summary>
 /// <param name="region">Region of the Customers</param>
 /// <returns></returns>
 public List <Customers> GetAllByRegion(string region)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(Customers.Properties.Region, region)));
 }
Exemple #20
0
 /// <summary>
 /// Get all the Employeeses of the ReportsToEmployee.
 /// </summary>
 /// <param name="reportsToEmployeeID">ID of ReportsToEmployee</param>
 /// <returns></returns>
 public List <EmployeesView> GetAllWithReportsToEmployee(int reportsToEmployeeID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(EmployeesView.Properties.ReportsTo, reportsToEmployeeID)));
 }
Exemple #21
0
 /// <summary>
 /// Get all the Supplierses by CompanyName.
 /// </summary>
 /// <param name="companyName">CompanyName of the Suppliers</param>
 /// <returns></returns>
 public List <Suppliers> GetAllByCompanyName(string companyName)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(Suppliers.Properties.CompanyName, companyName)));
 }
Exemple #22
0
 /// <summary>
 /// Get all the EmployeeTerritorieses of the Territory.
 /// </summary>
 /// <param name="territoryID">ID of Territory</param>
 /// <returns></returns>
 public List <EmployeeTerritoriesView> GetAllWithTerritory(string territoryID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(EmployeeTerritoriesView.Properties.TerritoryID, territoryID)));
 }
Exemple #23
0
 /// <summary>
 /// Get all the Supplierses by PostalCode.
 /// </summary>
 /// <param name="postalCode">PostalCode of the Suppliers</param>
 /// <returns></returns>
 public List <Suppliers> GetAllByPostalCode(string postalCode)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(Suppliers.Properties.PostalCode, postalCode)));
 }
Exemple #24
0
 /// <summary>
 /// Get all the Orderses by ShippedDate.
 /// </summary>
 /// <param name="shippedDate">ShippedDate of the Orders</param>
 /// <returns></returns>
 public List <OrdersView> GetAllByShippedDate(DateTime shippedDate)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrdersView.Properties.ShippedDate, shippedDate)));
 }
Exemple #25
0
 /// <summary>
 /// Get all the Productses by ProductName.
 /// </summary>
 /// <param name="productName">ProductName of the Products</param>
 /// <returns></returns>
 public List <ProductsView> GetAllByProductName(string productName)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(ProductsView.Properties.ProductName, productName)));
 }
Exemple #26
0
 /// <summary>
 /// Get all the Orderses of the Customer.
 /// </summary>
 /// <param name="customerID">ID of Customer</param>
 /// <returns></returns>
 public List <OrdersView> GetAllWithCustomer(string customerID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrdersView.Properties.CustomerID, customerID)));
 }
Exemple #27
0
 /// <summary>
 /// Get all the Productses of the Category.
 /// </summary>
 /// <param name="categoryID">ID of Category</param>
 /// <returns></returns>
 public List <ProductsView> GetAllWithCategory(int categoryID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(ProductsView.Properties.CategoryID, categoryID)));
 }
Exemple #28
0
 /// <summary>
 /// Get all the Orderses of the Shipper.
 /// </summary>
 /// <param name="shipperID">ID of Shipper</param>
 /// <returns></returns>
 public List <OrdersView> GetAllWithShipper(int shipperID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(OrdersView.Properties.ShipVia, shipperID)));
 }
Exemple #29
0
 /// <summary>
 /// Get all the CustomerCustomerDemos of the CustomerDemographic.
 /// </summary>
 /// <param name="customerDemographicID">ID of CustomerDemographic</param>
 /// <returns></returns>
 public List <CustomerCustomerDemoView> GetAllWithCustomerDemographic(string customerDemographicID)
 {
     return(ObjectViewDAO.Search(new SimpleCondition(CustomerCustomerDemoView.Properties.CustomerTypeID, customerDemographicID)));
 }