设定连接字符串时,Name属性的值,应该等于创建的EF数据库类类名 比如:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data.Entity;using MVC_example.Models;namespace MVC_example.DataAccessLayer{ public class Cnn : DbContext { ......
本文摘自 :https://www.cnblogs.com/


