We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
低代码扩展 ZeroDbContext 现在是以聚合根为操作起点的,如果需要单独操作子实体和外部聚合根时怎么操作呢?例如例子里的用户角色关系,我现在要插入一个角色,该怎么操作呢?
The text was updated successfully, but these errors were encountered:
public ZeroDbContext(IFreeSql orm, TableDescriptor[] schemas) { ... }
这是 ctor 定义
单独操作子实体,可以直接在上层聚合根对象进行操作。
外部聚合根,需要独立再创建一个 ZeroDbContext 对象,schemas 是它对应的结构关系描述。
Sorry, something went wrong.
感谢大佬回复,这样感觉有点繁琐,如果可以提供如下使用方式就方便了: 针对所有表建一个 ZeroDbContext,保存了所有表的结构关系,然后使用的地方根据指定操作起点对象及关联的对象来应用级联操作。看了下源码,想改,但是没有思路。
TableDescripter[] 管理好这个就行
No branches or pull requests
Feature 特性
低代码扩展 ZeroDbContext 现在是以聚合根为操作起点的,如果需要单独操作子实体和外部聚合根时怎么操作呢?例如例子里的用户角色关系,我现在要插入一个角色,该怎么操作呢?
The text was updated successfully, but these errors were encountered: