The type Database cannot be constructed. You must configure the container to supply this value.
在ConnectionString配置节增加 providerName="System.Data.SqlClient" 属性 即可!
转自:http://blog.csdn.net/newdtech/article/details/8636979
转自:http://blog.csdn.net/newdtech/article/details/8636979