-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Translation of NewGuid() #265
Comments
In MySQL order by uuid() will not make your result in a random order. You have to use order by rand() |
@kagamine Figured that out just now. BTW, don't you think it's still necessary to add NewGuid for other use? |
How does one do this in code? ".OrderBy(x => rand())" ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
I'm using it for getting random records.
The issue
Cannot translate to NewGuid() to UUID()
Further technical details
MySQL version: MariaDB 10.1
Operating system: Windows 8
Pomelo.EntityFrameworkCore.MySql version: 1.1.1
The text was updated successfully, but these errors were encountered: