Skip to content
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

MasaDbContext doesn't support redefining QueryTrackingBehavior #542

Closed
zhenlei520 opened this issue Apr 7, 2023 · 0 comments · Fixed by #543
Closed

MasaDbContext doesn't support redefining QueryTrackingBehavior #542

zhenlei520 opened this issue Apr 7, 2023 · 0 comments · Fixed by #543
Assignees

Comments

@zhenlei520
Copy link
Contributor

Description

Custom QueryTrackingBehavior is not supported in custom Context

public class CustomQueryDbContext : MasaDbContext<CustomQueryDbContext>
{
    public CustomQueryDbContext(MasaDbContextOptions<CustomQueryDbContext> options) : base(options)
    {
        ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.TrackAll;
    }
}

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Known Workarounds

No response

.NET version

0.6.0

MASA Framework version

1.0.0-preview.26

Other information

No response

@zhenlei520 zhenlei520 self-assigned this Apr 7, 2023
zhenlei520 added a commit that referenced this issue Apr 7, 2023
zhenlei520 added a commit that referenced this issue Apr 7, 2023
MayueCif pushed a commit that referenced this issue Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant