dotnet / dotnet/efcore

Allow specifying different column facets per table in TPT, TPC or entity splitting

Open
#27,970 8 comments 12 reactions 0 assignees View on GitHub
area-model-building area-relational-mapping ef6-parity
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Split off from #19811
``` C#
modelBuilder.Entity().ToTable("Customer");
modelBuilder.Entity().ToTable("SpecialCustomer", tb =>
{
tb.Property(c => c.Id)
.HasDefaultValue("1")
.HasDefaultConstrainName("blah")
.HasDefaultValueSql("newid()")
.HasComputedColumnSql("1")
.HasConversion()
.HasColumnType("nvarchar(100)")
.IsRequired(false)
.HasMaxLength(100)
.IsUnicode(false)
.HasPrecision(1, 2)
.HasCollation("Latin1_General_BIN2");
});
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.