Пример #1
0
 /// <summary>
 /// Create a new vSalesPerson object.
 /// </summary>
 /// <param name="salesPersonID">Initial value of the SalesPersonID property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="jobTitle">Initial value of the JobTitle property.</param>
 /// <param name="emailPromotion">Initial value of the EmailPromotion property.</param>
 /// <param name="addressLine1">Initial value of the AddressLine1 property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="stateProvinceName">Initial value of the StateProvinceName property.</param>
 /// <param name="postalCode">Initial value of the PostalCode property.</param>
 /// <param name="countryRegionName">Initial value of the CountryRegionName property.</param>
 /// <param name="salesYTD">Initial value of the SalesYTD property.</param>
 /// <param name="salesLastYear">Initial value of the SalesLastYear property.</param>
 public static vSalesPerson CreatevSalesPerson(global::System.Int32 salesPersonID, global::System.String firstName, global::System.String lastName, global::System.String jobTitle, global::System.Int32 emailPromotion, global::System.String addressLine1, global::System.String city, global::System.String stateProvinceName, global::System.String postalCode, global::System.String countryRegionName, global::System.Decimal salesYTD, global::System.Decimal salesLastYear)
 {
     vSalesPerson vSalesPerson = new vSalesPerson();
     vSalesPerson.SalesPersonID = salesPersonID;
     vSalesPerson.FirstName = firstName;
     vSalesPerson.LastName = lastName;
     vSalesPerson.JobTitle = jobTitle;
     vSalesPerson.EmailPromotion = emailPromotion;
     vSalesPerson.AddressLine1 = addressLine1;
     vSalesPerson.City = city;
     vSalesPerson.StateProvinceName = stateProvinceName;
     vSalesPerson.PostalCode = postalCode;
     vSalesPerson.CountryRegionName = countryRegionName;
     vSalesPerson.SalesYTD = salesYTD;
     vSalesPerson.SalesLastYear = salesLastYear;
     return vSalesPerson;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the vSalesPersons EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTovSalesPersons(vSalesPerson vSalesPerson)
 {
     base.AddObject("vSalesPersons", vSalesPerson);
 }