上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: https://www.learnentityframeworkcore.com/configuration/fluent api/property configuration 配置entity的属性是非常之常用的, 我们可以为属性进行长度等各方面的限制, 都可以使用 fluent api完成, 下 阅读全文
posted @ 2019-10-12 10:38 YanyuWu 阅读(188) 评论(0) 推荐(0) 编辑
摘要: https://www.learnentityframeworkcore.com/configuration/fluent api/type configuration how to use? method | des | HasAlternateKey | Generates a unique c 阅读全文
posted @ 2019-10-12 10:37 YanyuWu 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 一篇文章总结 关系型数据库中的key https://www.sqlrelease.com/sql server tutorial/types of keys Keys are fields in a table which participate in below activities in RD 阅读全文
posted @ 2019-10-11 19:00 YanyuWu 阅读(1238) 评论(0) 推荐(0) 编辑
摘要: https://www.learnentityframeworkcore.com/configuration/many to many relationship configuration 目前无法使用 convention 来实现 many to many. 所以只能用 fluent api. e 阅读全文
posted @ 2019-10-11 14:59 YanyuWu 阅读(238) 评论(0) 推荐(0) 编辑
摘要: link: https://www.learnentityframeworkcore.com/conventions/one to many relationship this artical mainly talking about how to define an one to many rel 阅读全文
posted @ 2019-10-11 14:58 YanyuWu 阅读(168) 评论(0) 推荐(0) 编辑
摘要: https://www.learnentityframeworkcore.com/configuration/one to one relationship configuration By Convention ef core 通过 fk 去 区别 principle entity 和 depen 阅读全文
posted @ 2019-10-11 14:56 YanyuWu 阅读(526) 评论(0) 推荐(0) 编辑
摘要: link: https://www.learnentityframeworkcore.com/relationships/referential constraint action options 我的理解是, 当你对数据库中的某个数据进行更新或者删除操作时, 对这个数据关联的数据如何操作的设置. 阅读全文
posted @ 2019-10-10 16:02 YanyuWu 阅读(206) 评论(0) 推荐(0) 编辑
摘要: shadow properties 就是说咱们项目里面, 前台展示数据的时候, 有一些字段是需要展示出来给用户看的, 比如一个博客的 title, content等等, 这些都存在后台的数据库中的某个表, 对应于某些个字段, 但是有一些属性, 前台是不需要展示的, 后台却需要, 比如 last up 阅读全文
posted @ 2019-09-28 15:52 YanyuWu 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 情况描述 如果你符合下面的情况, 可以参考本文的解决方案 1. 你已经有了一个DB, 并且DB中也有了不少table, 但是table最开始的时候没有设置主键. 数据存入了一部分后, 突然想到为这个table添加主键并且自增的column. 并且不想丢失这部分数据时,,, 2. 你的db是自己建的, 阅读全文
posted @ 2019-09-27 13:35 YanyuWu 阅读(1869) 评论(0) 推荐(0) 编辑
摘要: 参考link: https://www.infoq.com/articles/Async Streams/ 中文博客中非常易懂的一篇: https://www.cnblogs.com/CoderAyu/p/10680805.html 生产者和消费者的拉取模式以及推送模式 C 8.0 中添加了一个新特 阅读全文
posted @ 2019-09-25 17:06 YanyuWu 阅读(421) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页