You need to wrap your database operation within a DbContextTransaction . See the below code: using (var transaction = db.Database.
確定! 回上一頁