Entity Framework getting an sql connection

后端 未结 8 1992
栀梦
栀梦 2021-02-08 02:16

In the light of Closing connections explicitly in Entity Framework and http://msdn.microsoft.com/en-us/library/bb738582%28v=vs.90%29.aspx it seems that I should be using the con

8条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 02:44

    var efConnectionStringBuilder = new EntityConnectionStringBuilder(efConnectionString);
    string sqlConnectionString = efConnectionStringBuilder.ProviderConnectionString;
    

提交回复
热议问题