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

Access to context from root expressions #668

Closed
rbwamsley opened this issue Oct 29, 2015 · 1 comment
Closed

Access to context from root expressions #668

rbwamsley opened this issue Oct 29, 2015 · 1 comment

Comments

@rbwamsley
Copy link

I'm creating an extension class for my application and am trying to keep my code fluent.

Example. Delete.ApplicationRole(34)

We have a stored procedure to delete application roles which follows the FK references all the way down through the table chain. I want to call this stored proc from my extension method. The problem is that I cannot access the context off DeleteExpressionRoot to create an ExecuteExpressionRoot to call my stored proc.

Is there another way of doing this?

public static class ApplicationRoleExtensions
{
public static IDeleteExpressionRoot ApplicationRole(this IDeleteExpressionRoot root, long roleId)
{
IExecuteExpressionRoot exec = new ExecuteExpressionRoot(???);
}
}

@fubar-coder
Copy link
Member

Note FM related

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