2016-08-16 2 views
1

Один из моих клиентов дал мне файл решения VS2015, над которым я должен работать. Однако я не могу его скомпилировать. Я также использую VS2015.Ошибка 175: поставщик ADO.NET с инвариантным именем «MySql.Data.MySqlClient» либо не зарегистрирован в конфигурационном файле машины или приложения

В нем используется Entity Framework, о котором я мало что знаю.

Ошибка: Ошибка 175: поставщик ADO.NET с инвариантным именем «MySql.Data.MySqlClient» либо не зарегистрирован в файле конфигурации устройства или приложения, либо не может быть загружен. Подробнее см. Внутреннее исключение.

Точки ошибки на файл EDMX, который выглядит следующим образом:

Я не знаю, с чего начать и как решить эту проблему. Любая помощь? Спасибо

<?xml version="1.0" encoding="utf-8"?> 
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx"> 
    <!-- EF Runtime content --> 
    <edmx:Runtime> 
    <!-- SSDL content --> 
    <edmx:StorageModels> 
     <Schema Namespace="NFMTestModel.Store" Provider="MySql.Data.MySqlClient" ProviderManifestToken="5.7" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl"> 
     <!--Errors Found During Generation: 
warning 6002: The table/view 'def.nfm.air' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.--> 
     <EntityType Name="air"> 
      <Key> 
      <PropertyRef Name="DateAndTime" /> 
      </Key> 
      <Property Name="DateAndTime" Type="datetime" Precision="0" Nullable="false" /> 
      <Property Name="Air_System_Air_line_1_Service_Pressure_Value" Type="double" /> 
      <Property Name="Air_System_Air_line_2_emergency_Pressure_Value" Type="double" /> 
      <Property Name="Air_System_Air_Manlock_point_11_Pressure_Value" Type="double" /> 
      <Property Name="Air_System_Air_Manlock_point_12_Pressure_Value" Type="double" /> 
      <Property Name="Air_System_Air_Manlock_point_21_Pressure_Value" Type="double" /> 
      <Property Name="Air_System_Air_Manlock_point_22_Pressure_Value" Type="double" /> 
      <Property Name="Air_System_Air_Manlock_regulation_Pressure_Value" Type="double" /> 
      <Property Name="Air_System_Air_System_Pressure_Value" Type="double" /> 
     </EntityType> 
     <!--Errors Found During Generation: 
warning 6002: The table/view 'def.nfm.articulation' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.--> 
     <EntityType Name="articulation"> 
      <Key> 
      <PropertyRef Name="DateAndTime" /> 
      </Key> 
      <Property Name="DateAndTime" Type="datetime" Precision="0" Nullable="false" /> 
      <Property Name="Articulation_Angle_Horizontal_Value" Type="double" /> 
      <Property Name="Articulation_Angle_Vertical_Value" Type="double" /> 
      <Property Name="Articulation_Force_Value" Type="double" /> 
      <Property Name="Articulation_Pushing_in_X_Value" Type="double" /> 
      <Property Name="Articulation_Pushing_in_Y_Value" Type="double" /> 
      <Property Name="Articulation_Speed_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Delta_Pressure_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Elongation_LH_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Elongation_RH_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Elongation_Setpoint_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Elongation_Start_point_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Elongation_Virtual_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Extend_Pressure_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Force_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_High_Limit_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Low_Limit_Value" Type="double" /> 
      <Property Name="Articulation_Bottom_Side_Retract_Pressure_Value" Type="double" /> 
+0

поможет вам http://stackoverflow.com/questions/21954207/enity-framework-with-mysql# – Mangrio

ответ

0

Я думаю, вам не хватает пакета MySql.Data. Попробуйте переустановить пакет из диспетчера пакетов Nuget. Не уверен, но это может решить вашу проблему.

+1

спасибо. попробовал, но не смог решить проблему – user1034912

Смежные вопросы

 Смежные вопросы