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

Fix to #29365 - Query/Test: convert FromSql tests to use query infra #29402

Merged
1 commit merged into from
Nov 10, 2022
Merged

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Oct 20, 2022

Fixes #29365

@maumar maumar requested a review from a team October 20, 2022 08:42
@dotnet dotnet deleted a comment Oct 20, 2022
@ghost
Copy link

ghost commented Oct 20, 2022

Hello @maumar!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@maumar
Copy link
Contributor Author

maumar commented Nov 9, 2022

ping @roji @AndriySvyryd

public virtual Task FromSqlRaw_queryable_multiple_composed(bool async)
=> AssertQuery(
async,
ss => from c in ((DbSet<Customer>)ss.Set<Customer>()).FromSqlRaw(NormalizeDelimitersInRawString("SELECT * FROM [Customers]"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder... For the overload of AssertQuery that accepts both actual and expected queries, maybe the actual lambda could have DbSet directly accessible somehow, to avoid all the casts to DbSet here... Not critical.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth considering especially if/when we add more stuff that composes on dbset directly

@ghost ghost merged commit a1bc1f4 into main Nov 10, 2022
@ghost ghost deleted the fix29365 branch November 10, 2022 15:42
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query/Test: convert FromSql tests to use query infra
2 participants