Код: Выделить всё
public enum FirstType
{
Indexing,
Reading,
}
Код: Выделить всё
public enum SecondType
{
ProposalAutomationContent,
NoticeResumeInteraction,
}
Код: Выделить всё
var processTypeConverter = new EnumToStringConverter();
var aiActionTypeConverter = new EnumToStringConverter();
modelBuilder
.Entity()
.Property(e => e.ProcessType)
.HasConversion(processTypeConverter);
modelBuilder
.Entity()
.Property(e => e.ActionType)
.HasConversion(aiActionTypeConverter);
Код: Выделить всё
ActionType = table.Column(type: "nvarchar(max)", nullable: false),
ProcessId = table.Column(type: "bigint", nullable: false),
ProcessType = table.Column(type: "nvarchar(450)", nullable: false)
Как EF Core определяет длину столбца? И почему у него такое поведение?
Подробнее здесь: https://stackoverflow.com/questions/787 ... um-strings