Entity Framework mapping problem

Today in the database (mysql) added a field, but always thought Add field, then select the solid model

Always thought that select "Add", has led to a problem, the reason is not to say, a little stupid, others already exist, but also add to why, I want to update the field effect I added, so

So select "Refresh", select that table to update it, update just fine, and then what, [ctrl + s] about the entity model corresponding tt template on ok

 

-------------------------------------------------- ------------------------------------- ---------- gorgeous dividing line ---------------------

Sand Sculpture One problem: the project is sub-library, a library entity, with a runtime library data, modify entity mapping add a field or something, the entity must first update the field database library or else add a field with the data. i go to operate more solid performance, especially what bird you who were engaged in the two days such a simple question, vomiting three liters are not enough to make it up

Sand Sculpture Second problem: myslq there will be case sensitive, it's God's special entity to engage in the library case sensitive, insensitive zone data, but also to set the foreign key, foreign key results also engage in a while, pay attention, otherwise there will be inexplicable problems arose

 

//////////////////////////////////////// ---------- ---------------- again gorgeous ------------------------------- ----------------------------

Install mysql for visualstudio this version seems to be random, and I installed the 1.2.8

Install mysql connnector / net ---> Note, now using mysql.data.entity 6.10.8 version so so so, your mysql connnector / net versions must be the same as the former and 6.10.8 

If the high version may flash back, lower version may also have other problems, so try to install the same version

还有一个问题,有可能有可能同样是1.2.8的mysql for visualstudio也可能出问题,如果你用的是vs 2017,安装的时候就选择vs2017,别的不管

这东西装了试,卸了再装再试,十几二十遍,我的天,时间就是金钱,骚年们,别再走弯路了

别问我什么是mysql connector/net什么什么的,我什么都不知道

2019-07-02

Guess you like

Origin www.cnblogs.com/Ghjx/p/11119740.html