Last active
August 28, 2015 03:11
-
-
Save debugmodedotnet/e6e9a511e2bf202549a2 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.Data.Entity; | |
namespace CodeFirstDemoApp | |
{ | |
public class Context : DbContext | |
{ | |
public Context() | |
: base("name=democonnectionstring") | |
{ | |
} | |
public DbSet<Student> Students { get; set; } | |
public DbSet<StudentAccount> StudentAccounts{ get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment