You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not find a topic like that in here, if there is, sorry for that.
Here we go, On prev version like EF 6.0 we had the possibility to set a default column type
like: //General Custom Context Properties
builder.Properties()
.Configure(p => p.HasColumnType("nvarchar"));
and this would be applied for all fields of type string, where I can't find a similar way for Ef core
@douglassimaodev Basically, you can iterate over the model at the end of OnModelCreating and bulk set facets like this. There are some examples in #6787.
I could not find a topic like that in here, if there is, sorry for that.
Here we go, On prev version like EF 6.0 we had the possibility to set a default column type
like: //General Custom Context Properties
builder.Properties()
.Configure(p => p.HasColumnType("nvarchar"));
and this would be applied for all fields of type string, where I can't find a similar way for Ef core
same for those options here:
modelBuilder.Conventions.Remove();
modelBuilder.Conventions.Remove();
modelBuilder.Conventions.Remove();
modelBuilder.Conventions.Remove();
for now on what is the recommendation to try to get the same behavior in EF core 2/3.0?
The text was updated successfully, but these errors were encountered: