Last active
February 8, 2019 14:26
-
-
Save lest-xu/5c239721de453af29f5a8bda5bd34bbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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