public Customer CreateCustomer(string FirstName, string LastName, string SSN)
        {
            Customer cust = new Customer();

            cust.FirstName = FirstName;
            cust.LastName = LastName;
            cust.SSN = SSN;

            return cust;
        }
 /// <summary>
 /// Create a new Customer object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="sSN">Initial value of the SSN property.</param>
 /// <param name="addressId">Initial value of the AddressId property.</param>
 /// <param name="lenderId">Initial value of the LenderId property.</param>
 /// <param name="customerGroupId">Initial value of the CustomerGroupId property.</param>
 public static Customer CreateCustomer(global::System.Int32 id, global::System.String firstName, global::System.String lastName, global::System.String sSN, global::System.Int32 addressId, global::System.Int32 lenderId, global::System.Int32 customerGroupId)
 {
     Customer customer = new Customer();
     customer.Id = id;
     customer.FirstName = firstName;
     customer.LastName = lastName;
     customer.SSN = sSN;
     customer.AddressId = addressId;
     customer.LenderId = lenderId;
     customer.CustomerGroupId = customerGroupId;
     return customer;
 }
        public Customer SaveCustomer(Customer Customer)
        {
            ((DatabaseContext)this.Database).Customers.AddObject(Customer);

            ((DatabaseContext)this.Database).SaveChanges();

            ((DatabaseContext)this.Database).Refresh(System.Data.Objects.RefreshMode.StoreWins, Customer);

            return Customer;
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomers(Customer customer)
 {
     base.AddObject("Customers", customer);
 }