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

Generate the smallest/bigest COMB for a date in C# #28

Open
Michael-Anderlin opened this issue Oct 11, 2023 · 0 comments
Open

Generate the smallest/bigest COMB for a date in C# #28

Michael-Anderlin opened this issue Oct 11, 2023 · 0 comments

Comments

@Michael-Anderlin
Copy link

Hello,

I'm are using Entity Framework to select data from DB. The PK of the table is a COMB GUID.
I would like to get the list of records for a date using the COMB PK for efficiency.
Following your doc, I'm able to generate the COMB "boundaries" of the day in SQL Server side but not in C#.
e.g. >= 2023-10-11 00:00:00.000 to <= 2023-10-11 23:59:59.999 or better < 2023-10-12 00:00:00
=>

'00000000-0000-0000-0000-018B1C087C00' to <= FFFFFFFF-FFFF-FFFF-FFFF-018B212ED800 or < 00000000-0000-0000-0000-018B212ED800

I could do it by splitting/concatating string but is there another way?

Tx.

Michael

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

1 participant