Created
January 28, 2015 22:14
-
-
Save meyerovb/b35b6ff630ccb13edcce to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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