mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-06 08:20:52 +08:00
update
12
实体关系.md
12
实体关系.md
@@ -45,6 +45,18 @@ fsql.CodeFirst.ConfigEntity<实体类>(a => a
|
|||||||
|
|
||||||
2、Navigate 设置的字符串是 类属性名,不是表 字段名!!!
|
2、Navigate 设置的字符串是 类属性名,不是表 字段名!!!
|
||||||
|
|
||||||
|
# 检测导航属性
|
||||||
|
|
||||||
|
如何检测一个导航属性是否配置生效:
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
var tbref = g.sqlite.CodeFirst
|
||||||
|
.GetTableByEntity(typeof(Edi))
|
||||||
|
.GetTableRef("Children", true);
|
||||||
|
```
|
||||||
|
|
||||||
|
GetTableRef(string propertyName, bool isThrow);
|
||||||
|
|
||||||
# 约定命名(无须指明 Navigate)
|
# 约定命名(无须指明 Navigate)
|
||||||
|
|
||||||
### OneToOne 一对一
|
### OneToOne 一对一
|
||||||
|
|||||||
Reference in New Issue
Block a user