This repository was archived by the owner on Oct 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Random #10
Comments
Evaluating these functions server-side seems to have no value that I can see. Closing as won't fix, but if you have a scenario for this, I'd love to hear it. |
These can be useful for sampling data: var sample = db.Data.OrderBy(_ => EF.Functions.Random()).Take(100); |
With some bit twiddling, the |
To get a more standard range... SELECT abs(random() / 9223372036854775807.0); |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Allow using the
random()
andrandomblob()
functions in LINQ. They don't quite align to .NET'sRandom
class an probably need new functions onEF.Functions
with client-side implementations.Consider adding this to the actual provider.
The text was updated successfully, but these errors were encountered: