コード例 #1
0
 /// <summary>
 /// Create a new vVendor object.
 /// </summary>
 /// <param name="vendorID">Initial value of the VendorID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="contactType">Initial value of the ContactType property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName 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 vVendor CreatevVendor(global::System.Int32 vendorID, global::System.String name, global::System.String contactType, global::System.String firstName, global::System.String lastName, global::System.Int32 emailPromotion, global::System.String addressLine1, global::System.String city, global::System.String stateProvinceName, global::System.String postalCode, global::System.String countryRegionName)
 {
     vVendor vVendor = new vVendor();
     vVendor.VendorID = vendorID;
     vVendor.Name = name;
     vVendor.ContactType = contactType;
     vVendor.FirstName = firstName;
     vVendor.LastName = lastName;
     vVendor.EmailPromotion = emailPromotion;
     vVendor.AddressLine1 = addressLine1;
     vVendor.City = city;
     vVendor.StateProvinceName = stateProvinceName;
     vVendor.PostalCode = postalCode;
     vVendor.CountryRegionName = countryRegionName;
     return vVendor;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the vVendors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTovVendors(vVendor vVendor)
 {
     base.AddObject("vVendors", vVendor);
 }