[TableView(true)] //TableView == ListView
 public IQueryable <Store> ListAccountsForSalesPerson([ContributedAction("Sales")] SalesPerson sp)
 {
     return(from obj in Instances <Store>()
            where obj.SalesPerson.SalesPersonID == sp.SalesPersonID
            select obj);
 }
Example #2
0
 [TableView(true)] //TableView == ListView
 public static IQueryable <Store> ListAccountsForSalesPerson([ContributedAction("Sales")] SalesPerson sp, IFunctionalContainer container)
 {
     return(from obj in container.Instances <Store>()
            where obj.SalesPerson.BusinessEntityID == sp.BusinessEntityID
            select obj);
 }
 /// <summary>
 /// Create a new SalesPerson object.
 /// </summary>
 /// <param name="salesPersonID">Initial value of the SalesPersonID property.</param>
 /// <param name="bonus">Initial value of the Bonus property.</param>
 /// <param name="commissionPct">Initial value of the CommissionPct property.</param>
 /// <param name="salesYTD">Initial value of the SalesYTD property.</param>
 /// <param name="salesLastYear">Initial value of the SalesLastYear property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static SalesPerson CreateSalesPerson(global::System.Int32 salesPersonID, global::System.Decimal bonus, global::System.Decimal commissionPct, global::System.Decimal salesYTD, global::System.Decimal salesLastYear, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     SalesPerson salesPerson = new SalesPerson();
     salesPerson.SalesPersonID = salesPersonID;
     salesPerson.Bonus = bonus;
     salesPerson.CommissionPct = commissionPct;
     salesPerson.SalesYTD = salesYTD;
     salesPerson.SalesLastYear = salesLastYear;
     salesPerson.rowguid = rowguid;
     salesPerson.ModifiedDate = modifiedDate;
     return salesPerson;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the SalesPersons EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSalesPersons(SalesPerson salesPerson)
 {
     base.AddObject("SalesPersons", salesPerson);
 }
Example #5
0
 [TableView(true)] //TableView == ListView
 public IQueryable<Store> ListAccountsForSalesPerson(SalesPerson sp) {
     return from obj in Instances<Store>()
         where obj.SalesPerson.SalesPersonID == sp.SalesPersonID
         select obj;
 }