using Microsoft.EntityFrameworkCore; using Volo.Abp.Domain.Entities; using Volo.Abp.EntityFrameworkCore; namespace DistDemoApp { public class TodoDbContext : AbpDbContext { public DbSet TodoItems { get; set; } public DbSet TodoSummaries { get; set; } public TodoDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity(b => { b.Property(x => x.Text).IsRequired().HasMaxLength(128); }); } } }