MVC 提示 输入字符串的格式不正确。
刚学mvc遇到了点问题,总是提示
Model
public class Test
{
public int ID { get; set; }
public string FieldA { get; set; }
public string FieldB { get; set; }
}
public class TestDBContext : DbContext
{
public DbSet<Test> Test { get; set; }
}
<connectionStrings>
<add name="TestDBContext"
connectionString=" Data Source=.;
Initial Catalog=Test;Persist Security Info=True;
User ID=sa;Password=sa " providerName="System.Data.SqlClient"/>
</connectionStrings>