随笔分类 -  WPF EF First

EF
摘要:解决办法:外键添加[JsonIgnore] 特性即可解决 /// <summary> /// 文章相册 /// </summary> [Table("ArticleAlbum")] public class ArticleAlbumModel { /// <summary> /// 主键ID /// 阅读全文
posted @ 2023-08-26 10:52 microsoft-zhcn 阅读(30) 评论(0) 推荐(0) 编辑
摘要:1.安装NuGet程序包 Microsoft.EntityFrameworkCore.Tools Microsoft.EntityFrameworkCore.SqlServer 2.配置Program,注入 AddDbContext 单例模式 builder.Services.AddDbContex 阅读全文
posted @ 2023-07-17 00:12 microsoft-zhcn 阅读(273) 评论(1) 推荐(0) 编辑
摘要:参考:https://www.icode9.com/content-1-526866.html 阅读全文
posted @ 2022-04-07 00:30 microsoft-zhcn 阅读(87) 评论(0) 推荐(0) 编辑
摘要:EF批量,参数: https://www.cnblogs.com/shanshanlaichi/p/6666074.html https://www.cnblogs.com/seanchang/p/9187619.html #region 16-批量删除 /// <summary> /// 16-批 阅读全文
posted @ 2021-09-10 18:10 microsoft-zhcn 阅读(552) 评论(0) 推荐(0) 编辑
摘要:namespace Micro.IMSSDK.Entity { /// <summary> /// 指定表名 /// </summary> [Table("UserInfors")] public class UserInfor { /// <summary> /// [主键(每个表必须要有主键), 阅读全文
posted @ 2021-07-26 09:59 microsoft-zhcn 阅读(72) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示