The type Database cannot be constructed. You must configure the container to supply this value. 在ConnectionString配置节增加 providerName="System.Data.SqlClient" 属性 即可!