0%

20180712工作日誌(AspNetCore; MongoDB; EFCodeFirst)

AspNetCore 2.1.2 安全性更新

Github : Core

記得更新


EFCore-MongoDB 原來無法處理關聯性的TABLE

我發現我無法直接增加關聯性的表格進MongoDB內,
在其中一個issue內也遭遇到了和我一樣的問題,
作者表示:

1
EFCore-MongoDB is just a thin adapter between EFCore's Metadata system and the official MongoDB C# driver, which has no concept of relationships that aren't explicitly in the model.

好的
只能用較複雜的邏輯去包了
嗚嗚

那篇ISSUE

那要怎麼做呢
找到了這篇

MongoDB設計指南

應該會使用 One-to-Many 多量級關聯模式 (Child-Referencing)

試試看吧!


EF Code First 的 DatabaseGenerated

自動給KEY值或不要自動給KEY值的東西

Miles MS.HelloWorld : [Entity Framework][Code First]DatabaseGenerated