mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Utilize EF 7 bulk delete operations instead of RemoveRange
This commit is contained in:
parent
48c3384e0c
commit
f03d1d7c17
8 changed files with 17 additions and 21 deletions
|
@ -38,9 +38,7 @@ public class AuthenticationController : ControllerBase
|
|||
invalidTokens = new[] { Platform.RPCS3, };
|
||||
}
|
||||
|
||||
this.database.GameTokens.RemoveWhere(t => t.UserId == user.UserId && invalidTokens.Contains(t.Platform));
|
||||
|
||||
await this.database.SaveChangesAsync();
|
||||
await this.database.GameTokens.RemoveWhere(t => t.UserId == user.UserId && invalidTokens.Contains(t.Platform));
|
||||
|
||||
return this.Redirect("~/authentication");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue