ORA-00972: identifier is too long error with EF Core

ORA-00972: identifier is too long error with EF Core

// Limit 30 char length as per Oracle

modelBuilder.Model.Relational().MaxIdentifierLength = 30;

All you need to do write this code where you are building model and it will trimmed down all your automatically created relation in to 30 chars. It will keep uniqueness in case of duplicity after trimming.

ef core 3.1

modelBuilder.Model.SetMaxIdentifierLength(30)

你可能感兴趣的:(.Net,Core,Oracle)