-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
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 操作非聚合根实体 #1756
Comments
public ZeroDbContext(IFreeSql orm, TableDescriptor[] schemas)
{
...
} 这是 ctor 定义 单独操作子实体,可以直接在上层聚合根对象进行操作。 外部聚合根,需要独立再创建一个 ZeroDbContext 对象,schemas 是它对应的结构关系描述。 |
感谢大佬回复,这样感觉有点繁琐,如果可以提供如下使用方式就方便了: |
TableDescripter[] 管理好这个就行 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature 特性
低代码扩展 ZeroDbContext 现在是以聚合根为操作起点的,如果需要单独操作子实体和外部聚合根时怎么操作呢?例如例子里的用户角色关系,我现在要插入一个角色,该怎么操作呢?
The text was updated successfully, but these errors were encountered: