mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-10 02:10:55 +08:00
update
@@ -14,6 +14,8 @@ With navigation properties, multi-table query is very convenient. Directly using
|
||||
|
||||
> Warm up note: to load navigation attributes, you need to solve the problem of dead cycle reference. When the reference relationship is very complex, it may lead to the failure of using navigation attributes for the first time. The second time is enough. The solution is to preheat all entity classes when the program starts, and while execute fsql.Select\<object\>().Astype (entity type);
|
||||
|
||||
OneToMany/ManyToMany supported by collection navigation properties: ICollection\<T\>、List\<T\>、ObservableCollection\<T\>
|
||||
|
||||
## Custom Navigation Relationship
|
||||
|
||||
```csharp
|
||||
|
||||
2
实体关系.md
2
实体关系.md
@@ -14,6 +14,8 @@
|
||||
|
||||
> 预热说明:导航属性加载,因为要解决死循环引用问题,当引用关系很复杂的时候,有可能导致首次使用导航属性失败,第二次就可以了。解决办法可以程序启动时就预热所有实体类,循环执行 fsql.Select\<object\>().AsType(实体类);
|
||||
|
||||
OneToMany/ManyToMany 集合导航属性支持的类型:ICollection\<T\>、List\<T\>、ObservableCollection\<T\>
|
||||
|
||||
# 自定义导航关系
|
||||
|
||||
```csharp
|
||||
|
||||
Reference in New Issue
Block a user