Skip to content

Instantly share code, notes, and snippets.

@kskalski
Created May 1, 2019 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kskalski/55b1c00e3b4d58e9e0b4bfe56e7c8b39 to your computer and use it in GitHub Desktop.
Save kskalski/55b1c00e3b4d58e9e0b4bfe56e7c8b39 to your computer and use it in GitHub Desktop.
Proto+EF model
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