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

Visualizer not available in Visual Studio 2022 with EF Core 8.0.1 #29

Closed
Mimisss opened this issue Mar 11, 2024 · 3 comments
Closed

Visualizer not available in Visual Studio 2022 with EF Core 8.0.1 #29

Mimisss opened this issue Mar 11, 2024 · 3 comments

Comments

@Mimisss
Copy link

Mimisss commented Mar 11, 2024

In a ASP.NET Core 8 project with EF Core 8.0.1, hovering over queries does not make the visualizer available.

image

Is there any other requirement we should be aware of?

@Giorgi
Copy link
Owner

Giorgi commented Mar 11, 2024

You need to assign the query to a variable to inspect it.

@Mimisss
Copy link
Author

Mimisss commented Mar 11, 2024

You need to assign the query to a variable to inspect it.

Right, thanks. It works.

But I get a timeout for the following query:

_context.Tests.Where(t => t.Visit.User.SMSAccount != null && 
            t.Visit.User.SMSAccount.AutoReminder &&
            t.Visit.Customer.Consent &&
            (t.Visit.Customer.ContactBy == "Mobile" || t.Visit.Customer.ContactBy == "Email and Mobile") &&
            !string.IsNullOrEmpty(t.Visit.Customer.Mobile) &&
            !t.Visit.Pet.PassedAway &&
            t.Reminder.HasValue && 
            !t.ReminderSMSSent &&
            DateTime.Now.Date.AddDays(t.Visit.User.SMSAccount.DaysBefore.Value) == t.Reminder)
    .Include(t => t.Visit.User.SMSAccount)
    .Include(t => t.Visit.Customer)
    .Include(t => t.Visit.Pet)
    .AsNoTracking();

image

Maybe this should be discussed separately, though.

@Giorgi
Copy link
Owner

Giorgi commented Mar 11, 2024

This is tracked in #25

@Giorgi Giorgi closed this as completed Mar 11, 2024
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

No branches or pull requests

2 participants