Skip to content

Commit 69268a4

Browse files
guardrexdanroth27
andauthored
Update aspnetcore/blazor/tutorials/movie-database-app/part-6.md
Co-authored-by: Daniel Roth <[email protected]>
1 parent 3c62080 commit 69268a4

File tree

1 file changed

+1
-1
lines changed
  • aspnetcore/blazor/tutorials/movie-database-app

1 file changed

+1
-1
lines changed

aspnetcore/blazor/tutorials/movie-database-app/part-6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The `movie => movie.Title!.Contains(...)` code is a *lambda expression*. Lambdas
6060

6161
The <xref:System.Data.Objects.DataClasses.EntityCollection%601.Contains%2A> method is run on the database, not in the C# code. The case sensitivity of the query depends on the database and the collation. For SQL Server, <xref:System.String.Contains%2A> maps to [SQL `LIKE`](/sql/t-sql/language-elements/like-transact-sql), which is case insensitive. SQLite with default collation provides a mixture of case-sensitive and case-insensitive filtering, depending on the query. The remainder of this tutorial assumes case-insensitive database collation.
6262

63-
If you're following this tutorial using Visual Studio Code or the .NET CLI, you're using a SQLite database. To adopt case-insensitive collation, open the `Data/BlazorWebAppMoviesContext.cs` file. Inside the `BlazorWebAppMoviesContext` class, add the following code:
63+
To adopt case-insensitive collation when using SQLite (<xref:Microsoft.EntityFrameworkCore.SqliteDbContextOptionsBuilderExtensions.UseSqlite%2A> is called in `Program.cs`), open the `Data/BlazorWebAppMoviesContext.cs` file. Inside the `BlazorWebAppMoviesContext` class, add the following code:
6464

6565
```csharp
6666
protected override void OnModelCreating(ModelBuilder modelBuilder)

0 commit comments

Comments
 (0)