Pavan Ramamurthy
Write a Connection-string applicable for Entity Framework Codefirst and explain how it is recognised
By Pavan Ramamurthy in C# on Aug 21 2013
  • Madan Shekar
    Jan, 2019 14

    In the above context class, we specify a connection string name as a parameter. Please note that the connection string name should start with "name=", otherwise it will consider it as a database name. The database name in the connection string in app.config is SchoolDB-ByConnectionString. EF will create a new SchoolDB-ByConnectionString database or use the existing SchoolDB-ByConnectionString database in the local SQL Server. Make sure that you include providerName = "System.Data.SqlClient" for the SQL Server database in the connection string.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS