maliming
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/en/Entity-Framework-Core.md
|
|
@ -193,7 +193,7 @@ public class BookRepository : EfCoreRepository<BookStoreDbContext, Book, Guid>, |
|
|
|
|
|
|
|
|
public async Task DeleteBooksByType(BookType type) |
|
|
public async Task DeleteBooksByType(BookType type) |
|
|
{ |
|
|
{ |
|
|
await DbContext.Database.ExecuteSqlCommandAsync( |
|
|
await DbContext.Database.ExecuteSqlRawAsync( |
|
|
$"DELETE FROM Books WHERE Type = {(int)type}" |
|
|
$"DELETE FROM Books WHERE Type = {(int)type}" |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|