Relative Content

Tag Archive for .netentity-frameworkentity-framework-coreasp.net-core-6.0pomelo-entityframeworkcore-mysql

EF Core Adding Unwanted Default Value to String Property

I’m encountering an issue with Entity Framework Core (using Pomelo for MySQL) in my .NET Core 6 application. When I update or recreate the database, a specific field (OperationCode) in my XXX table is automatically assigned a default value of a single double-quote (“). This property is not null, and I’ve used the same code for some other fields in another table, where it is working fine.