Browse Source

Update Entity-Framework-Core.md

pull/2807/head
maliming 7 years ago
committed by GitHub
parent
commit
f4675e8ae0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/en/Entity-Framework-Core.md

2
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}"
); );
} }

Loading…
Cancel
Save