Skip to content

Instantly share code, notes, and snippets.

@meyerovb
Created January 28, 2015 22:14
Show Gist options
  • Save meyerovb/b35b6ff630ccb13edcce to your computer and use it in GitHub Desktop.
Save meyerovb/b35b6ff630ccb13edcce to your computer and use it in GitHub Desktop.
using System.Data.Entity;
namespace PGTest.Models
{
public partial class DataContext : DbContext
{
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{ modelBuilder.HasDefaultSchema("public"); base.OnModelCreating(modelBuilder); }
public DataContext() : base("name=DataEntities") { Database.SetInitializer<DataContext>(null); }
public virtual DbSet<Region> Regions { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment