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

Bring dotnet glob to sql clr and ef core! #69

Open
dazinator opened this issue Aug 10, 2019 · 2 comments
Open

Bring dotnet glob to sql clr and ef core! #69

dazinator opened this issue Aug 10, 2019 · 2 comments

Comments

@dazinator
Copy link
Owner

dazinator commented Aug 10, 2019

I'm considering the following..

Produce a SQL Clr assembly that can be installed into sql server and adds a User defined function for glob matching which will leverage dotnet glob.

Produce an EFCore assembly that provides the User defined function for use with EFCore db context queries.

See this for how to use user defined functions in ef core: http://anthonygiretti.com/2018/01/11/entity-framework-core-2-scalar-function-mapping/

With this in place, in an application that uses EFCore, you could query a SQL database and use Glob pattern matching inside the query that executes on the sql server. You can already use Like operator ofcourse, but Glob expressions have the potential to be better suited for matching paths if you store directory paths in a database for example.

@dazinator
Copy link
Owner Author

I'm going to wait to implement this only if there is demand.

@dazinator
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant