Skip to content

Instantly share code, notes, and snippets.

@lest-xu
Last active February 8, 2019 14:26
Show Gist options
  • Select an option

  • Save lest-xu/b7a5e91c63bada49b01261980337880e to your computer and use it in GitHub Desktop.

Select an option

Save lest-xu/b7a5e91c63bada49b01261980337880e to your computer and use it in GitHub Desktop.
namespace Angular6Mvc5.Models
{
public class Supplier
{
public int Id { get; set; }
public string CompanyName { get; set; }
public string ContactName { get; set; }
public string ContactTitle { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string Phone { get; set; }
public string Fax { get; set; }
public Supplier(DataRow row)
{
this.Id = Convert.ToInt32(row["Id"]);
this.CompanyName = row["CompanyName"].ToString();
this.ContactName = row["ContactName"].ToString();
this.ContactTitle = row["ContactTitle"].ToString();
this.City = row["City"].ToString();
this.Country = row["Country"].ToString();
this.Phone = row["Phone"].ToString();
this.Fax = row["Fax"].ToString();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment