添加数据库迁移
This commit is contained in:
@@ -14,9 +14,11 @@ namespace Infrastructure.EntityConfigurations
|
||||
public void Configure(EntityTypeBuilder<Link> builder)
|
||||
{
|
||||
builder.ToTable("Link");
|
||||
builder.HasKey(l => l.ShortCode);
|
||||
builder.HasKey(l => l.Id);
|
||||
builder.HasIndex(l => l.ShortCode).IsUnique();
|
||||
builder.Ignore(l => l.DomainEvents);
|
||||
builder.Property(l => l.AppId).IsRequired();
|
||||
builder.Property(l => l.ShortCode).HasMaxLength(11);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user