score:3
Accepted answer
You should be able to do this if you wrap everything within a TransactionScope object.
Source: stackoverflow.com
Related Query
- Wrap a LINQ datacontext and non linq stored procedure into a transaction?
- Getting stored procedure output parameter with LINQ and Entity Framework
- Lost decimal precision and scale using LINQ and stored procedure with output parameters
- Stored Procedure Multiple-Table Output With LINQ and ASP.NET MVC
- Why are stored procedures, functions, and views put into a .dbml file instead of the code file?
- Turn Function or Stored Procedure Result into "live" Result for LINQ
- Is it possible to return a return value and a result set from a stored procedure using LINQ
- Execute stored procedure in ASP.NET MVC and LINQ
- Getting objects using LINQ and stored procedure
- Converting a stored procedure output into Objects through LINQ
- How can get a result of a linq stored procedure into a label which is scalar
- Linq GroupBy and Sum for MVVM from stored procedure
- Reuse stored procedure result in linq to sql in Code First
- LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression
- LINQ to Entities does not recognize the method 'System.DateTime AddSeconds(Double)' method, and this method cannot be translated into
- Is it Possible to call a Stored Procedure using LINQ in LINQPad?
- LINQ to Entities does not recognize the method 'Int32 Int32(System.String)' method, and this method cannot be translated into a store expression
- LINQ - GroupBy a key and then put each grouped item into separate 'buckets'
- Performance Difference between LINQ and Stored Procedures
- LINQ to Entities does not recognize the method 'Int32 ToInt32(System.Object)' method, and this method cannot be translated into a store expression
- LINQ to Entities does not recognize the method 'Int32 Parse(System.String)' method, and this method cannot be translated into a store expression
- Stored Procedure return values with linq data context
- Enumerable.Empty<T>().AsQueryable(); This method supports the LINQ to Entities infrastructure and is not intended to be used directly from your code
- Linq "Could not translate expression... into SQL and could not treat it as a local expression."
- Rollback a stored procedure call from inside a transaction using LINQ-to-SQL?
- How to execute stored procedure and get return result in MVC/EF/LINQ
- Split a separated string into hierarchy using c# and linq
- Can I combine a foreach and a LINQ query into one?
- Group by key and send values into list using LINQ
- LINQ calling a Stored Procedure is slow
More Query from same tag
- List<Object> to hierarchy
- Pass a lambda parameter to an include statement
- LINQ to SQL "aggregating" property
- It crosses two tables with left join with two fields in linq
- Enumerable.Average and OverflowException
- Get field descriptions from a parent related table in a gridview
- Query Not Working for All (in Hash)
- Calculating rank in EF Core 6?
- Combining The Results Of Two Linq Queries Into A Single Var?
- How do you get errors in the ModelState, for a particular property?
- Elegant way to check if a list contains an object where one property is the same, and replace only if the date of another property is later
- Updating Query results from the result of a previous query in CSHTML
- How do I exclude a member from Linq-To-Sql mapping?
- Is this running slow because it's in LINQ, or because i'm doing it in a poor way?
- Aggregating Lists inside of a List of objects using LINQ
- LINQ-TO-SQL query not working with CSV file
- how do access previous item in list using linQ?
- C# LINQ - selecting a dynamic object based on properties defined at runtime
- Get max value of x field only from objects satisfying 'true' for y field
- Can't understand this IEnumerable<T>.ToArray() example
- How to make store expression for entity framework?
- how to use effective Enumerable.Repeat
- Trying to group inner child list and get common records
- Matching on search attributes selected by customer on front end
- Get the specific count of each column using GROUP BY LINQ
- Modifying dates in ASP.NET MVC C# based on stored time zone
- Looping through collection and Concatenating
- LINQ Union with Constant Values
- Linq Array List order changes
- Generic Interface For Hierarchical Collection