using AbpPerfTest.WithAbp.Entities; using Microsoft.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; namespace AbpPerfTest.WithAbp.EntityFramework { public class BookDbContext : AbpDbContext { public DbSet Books { get; set; } public BookDbContext(DbContextOptions builderOptions) : base(builderOptions) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity(b => { b.ToTable("Books"); b.Property(x => x.Name).HasMaxLength(128); }); } } }