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

use switch for SqlServerDateOnlyMemberTranslator #34417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SimonCropp
Copy link
Contributor

replaces #34413

@roji

@roji
Copy link
Member

roji commented Aug 13, 2024

Looks good, but if we're doing to do this, it would be better to do it across the board and not just in one translator - are you interested in doing that?

@SimonCropp
Copy link
Contributor Author

it would be better to do it across the board and not just in one translator - are you interested in doing that?

yep. but i wasnt sure on how large you like PRs to be?

@roji
Copy link
Member

roji commented Aug 14, 2024

As long as it does only this one change, I think it's fine for it to be as big as it needs to be... I'd maybe do a pass on the translators only for now (though there probably are similar opportunities elsewhere) to keep the scope manageable. FWIW this is something that I've been wanting to do for a while...

};
}

private SqlExpression Function(SqlExpression? instance, Type returnType, string datePart)
Copy link
Member

Choose a reason for hiding this comment

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

nit: move this inside to be a local method

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 this pull request may close these issues.

2 participants