Skip to content

Instantly share code, notes, and snippets.

@corespider
Created August 6, 2020 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corespider/8c4b55e23f1d571dfb42bec9904c008f to your computer and use it in GitHub Desktop.
Save corespider/8c4b55e23f1d571dfb42bec9904c008f to your computer and use it in GitHub Desktop.
ASP .NET Web API CRUD operation using Entity Framework- Customer class
namespace CustomerAPI.Models
{
[Table("Customer")]
public class Customer
{
[Key]
public int CustId { get; set; }
public string Name { get; set; }
public string Address { get; set; }
public string Mobile { get; set; }
public string Email { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment