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

Expressions with sub expressions that need to resolved runtime #16

Open
djmulder opened this issue Dec 12, 2017 · 1 comment
Open

Expressions with sub expressions that need to resolved runtime #16

djmulder opened this issue Dec 12, 2017 · 1 comment

Comments

@djmulder
Copy link

djmulder commented Dec 12, 2017

I'm not sure how to formulate this issue.

Right now I'm trying to create "dynamic" queries to a database, based on expressions.

An example would be:

CustomerRepository.Get(c => c.ParentKey == Key)

Now I just want it to ignore the "c" as it's part of the expression handled by the "Get" but I do however want this to be invoked dynamically as it's fully context dependent (the expression context is set to the owner of "CustomerRepository")

How would this work in Flee? If at all?
I'm trying to avoid splitting up the string as I'm building a framework for the company. I'm trying to create a delayed invocation of the expression. (basically it's based on: if the object is loaded, don't load the children, only do so when specifically requested, main use would be during serialization)

@clystian
Copy link

clystian commented Mar 9, 2018

@djmulder about delayed invocations, did you try use generators?

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

2 participants