Skip to content

Instantly share code, notes, and snippets.

@lest-xu
Last active February 8, 2019 14:26
Show Gist options
  • Save lest-xu/5c239721de453af29f5a8bda5bd34bbf to your computer and use it in GitHub Desktop.
Save lest-xu/5c239721de453af29f5a8bda5bd34bbf to your computer and use it in GitHub Desktop.
namespace Angular6Mvc5.Models
{
public class Customer
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string Phone { get; set; }
public Customer(DataRow row)
{
this.Id = Convert.ToInt32(row["Id"]);
this.FirstName = row["FirstName"].ToString();
this.LastName = row["LastName"].ToString();
this.City = row["City"].ToString();
this.Country = row["Country"].ToString();
this.Phone = row["Phone"].ToString();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment