You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(???);
}
}
The text was updated successfully, but these errors were encountered:
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(???);
}
}
The text was updated successfully, but these errors were encountered: