Created
December 25, 2016 12:06
-
-
Save AbubakarSiddiq/92c01090cc3036effa2e24d7cc987bd8 to your computer and use it in GitHub Desktop.
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Web; | |
namespace DataBaseDemo.Models | |
{ | |
public class Student | |
{ | |
public int ID { get; set; } | |
public string Name { get; set; } | |
public string Email { get; set; } | |
} | |
public class StudentDBContext : DbContext | |
{ | |
public StudentDBContext() | |
{ | |
} | |
public DbSet<Student> Students { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment