摘要:
using Ruanmou.EF.Model;using System;using System.Collections.Generic;using System.Data.Entity;using System.Data.SqlClient;using System.Linq;using Syst 阅读全文
posted @ 2022-02-17 16:38
FiberHomer
阅读(51)
评论(0)
推荐(0)
摘要:
1、在DbContext类所在项目中添加 EntityFramework引用,可使用nuget添加 2、打开程序包管理器控制台(如果看不到程序包管理器控制台,在菜单栏中“其他窗口”中可找到),默认项目要选择你的DbContext类所在项目,然后输入命令,启用数据迁移 enable-migration 阅读全文
posted @ 2022-02-17 14:47
FiberHomer
阅读(413)
评论(0)
推荐(0)