Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Last active August 28, 2015 03:11
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 debugmodedotnet/e6e9a511e2bf202549a2 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/e6e9a511e2bf202549a2 to your computer and use it in GitHub Desktop.
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