不支持关键字:metadata

 

string sqlConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["Cost3Entities"].ConnectionString;       

改为:

string sqlConnectionString = @"Data Source=.\sql2012;Database=Cost3;Trusted_Connection=true;Persist Security Info=True";

 

 

posted @ 2013-11-20 11:39  ibg  阅读(2906)  评论(0编辑  收藏  举报