using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Entity; using System.Linq; using System.Web; namespace MVCEF.Models { public class StudentContext : DbContext { public DbSet<StudentModel> Students { get; set; } } public class StudentModel { [Key] public int Roll_No; //public int Roll_No { get; set; } public string Name { get; set; } public string Mobile_No { get; set; } public string City { get; set; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)