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
When use code-first to develop ORM program,that will make static template for this db model,
if db table changes,the code-model will change either,so if there is one way to implement this dynamic columns mapping at run-time configuration ?
The text was updated successfully, but these errors were encountered:
@qianthinkover there are several features that could make working with dynamic models easier that are covered in this issue in the backlog: #2282.
Within the current feature set, there is at least one thing that could help you easily make programmatic changes to the model, but it is limited to adding properties to the EF model without modifying the .NET classes: the ability to defined "shadow state" properties:
We also have a rich metadata API that is lower level than the fluent API used in code first and which can be used to mutate the model in several ways.
If the "source of truth" of your model is the database schema and you only need to make changes occasionally, you may be better of re-scaffolding the model.
When use code-first to develop ORM program,that will make static template for this db model,
if db table changes,the code-model will change either,so if there is one way to implement this dynamic columns mapping at run-time configuration ?
The text was updated successfully, but these errors were encountered: