Home > Net >  Ado.net when the database changes how to update the model class
Ado.net when the database changes how to update the model class

Time:11-19

Changes in the background how to update a list of fields in a database entity class

CodePudding user response:

Ado is create/generate. Can't fully automatic..

So you can only after the change table, using a third-party tools to regenerate.

CodePudding user response:

reference 1st floor by_ love reply:
ado is create/generate. Can't fully automatic..

So you can only after the change table, using a third-party tools to regenerate.
, for example

CodePudding user response:

Like before call neusoft tools,
Ef this fix it for you now,
But I am used to code the first,

CodePudding user response:

Code first: what happened

CodePudding user response:

reference 4 floor qq_40576914 response:
code first how make

Baidu once you know, according to the code generation database,
PS should be ef or linq this ORM framework can ah, database changed you refresh, he can use the entity class

CodePudding user response:

I know this software, a key generation,

CodePudding user response:

I'm now after the project launched by some of his early deployment code and modify operation fields in a database table and then also update project model classes

CodePudding user response:

Code change the database field at the same time to change the database model, the need for database callback, after all you are code first,

CodePudding user response:

Write framework to support my 13 years, after the assignment, will automatically update the buffer in the dictionary, and then execute memory more assignment case when generating SQL,

CodePudding user response:

09909
  • Related