-
Notifications
You must be signed in to change notification settings - Fork 840
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[] 管理好这个就行 |
我也觉得麻烦,失去了低代码的意义 |
不依赖导航属性,每个表都是聚合根,每个表都有 TableDescriptor |
对这个组件我有以下建议,望参考: 1、一个地方定义TableDescriptor(这样改后聚合根可手动指定), 这样做以后大部分工作基本我调用一个增删改查的api就能完成了。不用再一个功能写一个api |
Feature 特性
低代码扩展 ZeroDbContext 现在是以聚合根为操作起点的,如果需要单独操作子实体和外部聚合根时怎么操作呢?例如例子里的用户角色关系,我现在要插入一个角色,该怎么操作呢?
The text was updated successfully, but these errors were encountered: