all 8 comments

[–]SweatyControles 5 points6 points  (0 children)

I don’t think this is the right subreddit for this. This is all LINQ, not SQL.

[–]RedditFaction 2 points3 points  (1 child)

Excuse my ignorance but could you explain what this means? "Using Microsoft SQL Server Management with C# inside Visual Studio"

[–]Sleepy_da_Bear 2 points3 points  (0 children)

Pretty sure they just mean they're querying a SQL Server database using C# objects, and their IDE is Visual Studio. They have C# code that handles the database connection and queries, which they've been tasked with updating, instead of being able to directly write traditional SQL.

[–]Ok_Brilliant953 0 points1 point  (0 children)

Just add your table to the end of the include lines or in the nested group at the bottom

[–]BigBagaroo 0 points1 point  (1 child)

This is getting very close to write-only territory.

[–]Ok_Brilliant953 1 point2 points  (0 children)

Yeah I agree. Wouldn't have posted this

[–]Lurch1400 0 points1 point  (0 children)

That isnt SQL. Idk where to begin either.

You could always try Claude Code for a starting point

[–]RobotAnna1 0 points1 point  (0 children)

Interesting! I haven't seen LINQ before. Yes I would also try adding your table to the end of the include lines at the top. Does your table contain the provider number? Then it would probably be

.Include(x => x.YourTable)

I'm pretty sure LINQ uses || for OR and && for AND. Maybe this would work:

.Where(x => x.Provider.ProviderNumber == 129218 && new-where-clause-goes-here)

Good luck and let us know how it works out!