Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

如何在框架中关闭Entityframework的延迟加载,而改用显式加载? #18

@wuyou331

Description

@wuyou331

目前来看需要在Repository类的构造函数中添加以下代码
((DbContext)unitOfWork).Configuration.LazyLoadingEnabled = false;

是否还有更合理的做法?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions