• No connection string named 'TestEntities' could be found in the application config file错误


    执行EF操作时遇到
    No connection string named 'TestEntities' could be found in the application config file错误

    解决:
    需要在应用程序的App.config中增加配置

    1  <connectionStrings>
    2  <add name="TestEntities" 
    3      connectionString="metadata=res://*/TestData.csdl|res://*/TestData.ssdl|res://*/TestData.msl;
    4        provider=MySql.Data.MySqlClient;provider connection string=&quot;
    5        server=localhost;user id=root;
    6        password=admin;persistsecurityinfo=True;database=test&quot;"
    7      providerName="System.Data.EntityClient" />
    8  </connectionStrings>
  • 相关阅读:
    leetcode41
    leetcode32
    leetcode312
    leetcode10
    leetcode85
    leetcode124
    leetcode301
    leetcode84
    一文读懂机器学习大杀器XGBoost原理
    【干货】机器学习中的五种回归模型及其优缺点
  • 原文地址:https://www.cnblogs.com/IIXS/p/11505271.html
Copyright © 2020-2023  润新知