Created
January 30, 2012 10:34
-
-
Save clausjoergensen/1703785 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
public class MeterTestDataContext : DbContext, IMeterTestDataContext | |
{ | |
public MeterTestDataContext(string fileOrServerOrConnection) | |
: base(fileOrServerOrConnection) | |
{ | |
} | |
protected override void OnModelCreating(DbModelBuilder modelBuilder) | |
{ | |
base.OnModelCreating(modelBuilder); | |
modelBuilder.Entity<TestPoint>() | |
.HasRequired(x => x.TestPointConfiguration) | |
.WithRequiredPrincipal(); | |
} | |
public IDbSet<AcceptanceTest> AcceptanceTests | |
{ | |
get; | |
set; | |
} | |
public IDbSet<AcceptanceTestRevision> AcceptanceTestRevisions | |
{ | |
get; | |
set; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment