Example #1
0
 /// <summary>
 /// Create a new vEmployee object.
 /// </summary>
 /// <param name="businessEntityID">Initial value of the BusinessEntityID 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>
 public static vEmployee CreatevEmployee(global::System.Int32 businessEntityID, 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)
 {
     vEmployee vEmployee = new vEmployee();
     vEmployee.BusinessEntityID = businessEntityID;
     vEmployee.FirstName = firstName;
     vEmployee.LastName = lastName;
     vEmployee.JobTitle = jobTitle;
     vEmployee.EmailPromotion = emailPromotion;
     vEmployee.AddressLine1 = addressLine1;
     vEmployee.City = city;
     vEmployee.StateProvinceName = stateProvinceName;
     vEmployee.PostalCode = postalCode;
     vEmployee.CountryRegionName = countryRegionName;
     return vEmployee;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the vEmployees EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTovEmployees(vEmployee vEmployee)
 {
     base.AddObject("vEmployees", vEmployee);
 }