c# - Visual Studio 2017 and MySQL EntityFramework -


when adding new ado.net entity data model > ef designer database > new connection > change connection not see mysql option;

enter image description here

i have installed nuget package mysql.data.entity (as required mysql.data , google.protobuf).

also when add package mysql.data.entity, existing ms sql entities returns error message;

system.typeloadexception: 'inheritance security rules violated type: 'mysql.data.mysqlclient.mysqlproviderservices'. derived types must either match security accessibility of base type or less accessible.'

yet in app.config still pointing ms sql;

<add name="mydbentities" connectionstring="metadata=res://*/myentity.csdl|res://*/myentity.ssdl|res://*/myentity.msl;provider=system.data.sqlclient;provider connection string=&quot;data source=mssqlserver;initial catalog=mydb;persist security info=true;user id=sa;password=mypassword;multipleactiveresultsets=true;app=entityframework&quot;" providername="system.data.entityclient" /> 

if remove nuget package mysql.data.entity , change nothing works correctly.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -