Last active
November 4, 2017 10:07
-
-
Save dcomartin/32d78b7a4aff85e6d1b620d264a7b71b 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
public class MyDbConfiguration : DbConfiguration | |
{ | |
public MyDbConfiguration() : base() | |
{ | |
var path = Path.GetDirectoryName(this.GetType().Assembly.Location); | |
SetModelStore(new DefaultDbModelStore(path)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment