public class EFDbContext : DbContext { public DbSet<Advert> Adverts { get; set; } public DbSet<Kind> Kinds { get; set; } public DbSet<Age> Ages { get; set; } public DbSet<Castration> Castrations { get; set; } public DbSet<Coloring> Colorings { get; set; } public DbSet<Color> Colors { get; set; } public DbSet<Hair> Hair { get; set; } public DbSet<Pet> Pets { get; set; } public DbSet<Sex> Sexes { get; set; } }
<connectionStrings> <add name="EFDbContext" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=SearchPets;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)