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.
19 lines
421 B
19 lines
421 B
using Microsoft.EntityFrameworkCore;
|
|
using Entities;
|
|
|
|
namespace DbContextLib
|
|
{
|
|
public class LibraryContext: DbContext
|
|
{
|
|
public DbSet<BookEntity> BookSet{ get; set; }
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
optionsBuilder.UseSqlite($"Data Source=ex_03_02_CodeFirst_data_annotations.Books.db");
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|