Giter Site home page Giter Site logo

Comments (11)

2881099 avatar 2881099 commented on May 7, 2024

问题1 where怎么写的

问题2 你应该用的是netframework?由于是netstandard库,是会比较多小包。未来是这个趋势,按数据库拆分其实不会少几个dll。

from freesql.

sangeren avatar sangeren commented on May 7, 2024

await _postCategoryRepository.Select.Where(p => p.ParentId.Equals(Guid.Empty)).ToListAsync();

from freesql.

2881099 avatar 2881099 commented on May 7, 2024

https://github.com/2881099/FreeSql/wiki/%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%87%BD%E6%95%B0
这里是表达式解析的列表

可以直接用 = 判断,equals没支持,回头我支持一下,谢谢提醒

from freesql.

sangeren avatar sangeren commented on May 7, 2024

“然后还有一个问题,我使用mysql数据库,打包时打了一堆别的数据库dll,”

这个问题是样的,我部署到docker中,每次 restore project 时会去拉所有引用的包,
那天网不好,每次都是断在 freesql的还原,然后我看了它引用了一些别的数据库dll,所以我有了这个想法。

from freesql.

sangeren avatar sangeren commented on May 7, 2024

.Where("ParentId = ?ParentId", new { ParentId = Guid.Empty })

这是我之前找到方式,不知道你说的是这个意思不。

from freesql.

2881099 avatar 2881099 commented on May 7, 2024

了解了,看来还是得拆。

不过到时候会暴露一些,对外部没多少意义的方法和类。

from freesql.

2881099 avatar 2881099 commented on May 7, 2024

.Where("ParentId = ?ParentId", new { ParentId = Guid.Empty })

这是我之前找到方式,不知道你说的是这个意思不。

这种也可以,我说的是 .Where(p => p.ParentId == Guid.Empty)

from freesql.

2881099 avatar 2881099 commented on May 7, 2024

我现在把 Equals 改成和 == 一样的行为了。

当右表达式值为 NULL 时,会变为 ParentId is null

from freesql.

2881099 avatar 2881099 commented on May 7, 2024

is null, is not nul 这个行为之前就有

from freesql.

2881099 avatar 2881099 commented on May 7, 2024

image

谢谢你的提醒

from freesql.

2881099 avatar 2881099 commented on May 7, 2024

#55
现在按小包拆分发布了,谢谢

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.