You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mchsamples-.net-core/p08_BDD_EntityFramework/ex_042_004_Keys_conventions/DBEntities.cs

17 lines
497 B

using Microsoft.EntityFrameworkCore;
namespace ex_042_004_Keys_conventions
{
class DBEntities : DbContext
{
public DbSet<Nounours> NounoursSet { get; set; }
public DbSet<Cylon> CylonsSet { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=ex_042_004_Keys_conventions.Nounours.mdf;Trusted_Connection=True;");
}
}
}