Skip to content

IQueryable对象不能使用EF的ToQueryString方法 #286

@kailicom

Description

@kailicom

使用Sharding-Core版本:7.8.1.22
我想通过IQyerybale对象获取生成的sql语句,用于其它中间件数据的查询。
但配置过分表的实体调用EF拓展方法ToQueryString返回:The given 'IQueryable' does not support generation of query strings.

Sharding-Core是否有类似获取sql语句的方法?
或者可以提供一个类似的方法,能够在真正执行前获取到生成sql语句?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions