Change the name of the scaffolded property to "Contents" and then map it to the "Product" column using either an attribute or the fluent API:
Scaffolding is done continuously in runtime. How to automate this so that this is scaffolded automatically ?
Mikesdotnetting
Once you have added your own configuration, use migrations to keep the schema in sync with the model. In EF Core, scaffolding is only intended to be used once per project.
Link you provided and MS documentation define migration like applying C# model source code changes to database. In my case database is changed outside of C# application. Database changes needs migrated to EF Core model. This is not supported in EF Core.
So continuous scaffold with re-create whole model after every change must used.
Member
52 Points
613 Posts
Re: Making EF Core properties backward compatible with Linq-To-Sql
Feb 09, 2021 06:08 PM|kobruleht|LINK
Scaffolding is done continuously in runtime. How to automate this so that this is scaffolded automatically ?
Link you provided and MS documentation define migration like applying C# model source code changes to database. In my case database is changed outside of C# application. Database changes needs migrated to EF Core model. This is not supported in EF Core.
So continuous scaffold with re-create whole model after every change must used.