project0/Business/Business.cs
/// <summary>
/// Create a new customer with all information other than name autogenerated or default
/// </summary>
Create a new customer with all information other than name autogenerated or default
Create a new customer with all information other than name autogenerated or default
public void addCustomerByName(string name) {
      var myCustomer = new Customer { Name = name};
      ((DbSet<Customer>)Customers).Add(myCustomer);
      context.SaveChanges();
    }
public void addCustomerByName ( string name ) { var myCustomer = new Customer { Name = name } ; ( ( DbSet < Customer > ) Customers ) . Add ( myCustomer ) ; context . SaveChanges ( ) ; }
Create a new customer with all information other than name autogenerated or default
Create a new customer with all information other than name autogenerated or default
name
string