Example #1
0
        /// <summary>
        /// Create a new ObjectContextCustomer object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="street">Initial value of the Street property.</param>
        /// <param name="country">Initial value of the Country property.</param>
        public static ObjectContextCustomer CreateObjectContextCustomer(global::System.Int32 id, global::System.String name, global::System.String street, global::System.String country)
        {
            ObjectContextCustomer objectContextCustomer = new ObjectContextCustomer();

            objectContextCustomer.Id      = id;
            objectContextCustomer.Name    = name;
            objectContextCustomer.Street  = street;
            objectContextCustomer.Country = country;
            return(objectContextCustomer);
        }
 /// <summary>
 /// Create a new ObjectContextCustomer object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="street">Initial value of the Street property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 public static ObjectContextCustomer CreateObjectContextCustomer(global::System.Int32 id, global::System.String name, global::System.String street, global::System.String country)
 {
     ObjectContextCustomer objectContextCustomer = new ObjectContextCustomer();
     objectContextCustomer.Id = id;
     objectContextCustomer.Name = name;
     objectContextCustomer.Street = street;
     objectContextCustomer.Country = country;
     return objectContextCustomer;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ObjectContextCustomers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToObjectContextCustomers(ObjectContextCustomer objectContextCustomer)
 {
     base.AddObject("ObjectContextCustomers", objectContextCustomer);
 }
Example #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ObjectContextCustomers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToObjectContextCustomers(ObjectContextCustomer objectContextCustomer)
 {
     base.AddObject("ObjectContextCustomers", objectContextCustomer);
 }