Created
May 1, 2019 17:16
-
-
Save kskalski/55b1c00e3b4d58e9e0b4bfe56e7c8b39 to your computer and use it in GitHub Desktop.
Proto+EF model
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
class Database : DbContext { | |
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { | |
optionsBuilder.UseSqlite("Data Source=garden.db"); | |
} | |
public DbSet<Models.Fruit> Fruits { get; set; } | |
public DbSet<Models.Tree> Trees { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment