Giter Site home page Giter Site logo

Comments (3)

2881099 avatar 2881099 commented on June 2, 2024
public ZeroDbContext(IFreeSql orm, TableDescriptor[] schemas)
{
   ...
}

这是 ctor 定义

单独操作子实体,可以直接在上层聚合根对象进行操作。

外部聚合根,需要独立再创建一个 ZeroDbContext 对象,schemas 是它对应的结构关系描述。

from freesql.

jerry-nom avatar jerry-nom commented on June 2, 2024

感谢大佬回复,这样感觉有点繁琐,如果可以提供如下使用方式就方便了:
针对所有表建一个 ZeroDbContext,保存了所有表的结构关系,然后使用的地方根据指定操作起点对象及关联的对象来应用级联操作。看了下源码,想改,但是没有思路。

from freesql.

2881099 avatar 2881099 commented on June 2, 2024

TableDescripter[] 管理好这个就行

from freesql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.