Skip to content

Commit a06cc75

Browse files
authored
fix: resolve CS1574 unresolved DatabaseFacade/ChangeTracker doc crefs in sample DbContexts (#539) (#549)
Adds the missing using Microsoft.EntityFrameworkCore.Infrastructure (and .ChangeTracking where needed) directives so XML doc <see cref=.../> tags referencing DatabaseFacade.EnsureCreated(Async) and ChangeTracker.Clear resolve correctly, matching the existing pattern in TodoApp.Avalonia. Affected sample DbContexts: - TodoApp.Uno/Database/AppDbContext.cs - TodoApp.WPF/Database/AppDbContext.cs - TodoApp.WinUI3/Database/AppDbContext.cs - TodoApp.BlazorWasm.Server/Database/TodoContext.cs Co-authored-by: ahall <ahall@cloudflare.com>
1 parent a1281d4 commit a06cc75

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎samples/todoapp-blazor-wasm/TodoApp.BlazorWasm.Server/Database/TodoContext.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// See the LICENSE file in the project root for more information.
44

55
using Microsoft.EntityFrameworkCore;
6+
using Microsoft.EntityFrameworkCore.ChangeTracking;
7+
using Microsoft.EntityFrameworkCore.Infrastructure;
68

79
namespace TodoApp.BlazorWasm.Server.Database;
810

‎samples/todoapp/TodoApp.Uno/TodoApp.Uno/Database/AppDbContext.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using Microsoft.EntityFrameworkCore;
6+
using Microsoft.EntityFrameworkCore.Infrastructure;
67

78
namespace TodoApp.Uno.Database;
89

‎samples/todoapp/TodoApp.WPF/Database/AppDbContext.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using CommunityToolkit.Datasync.Client.Http;
88
using CommunityToolkit.Datasync.Client.Offline;
99
using Microsoft.EntityFrameworkCore;
10+
using Microsoft.EntityFrameworkCore.Infrastructure;
1011
using TodoApp.WPF.Services;
1112

1213
namespace TodoApp.WPF.Database;

‎samples/todoapp/TodoApp.WinUI3/Database/AppDbContext.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using CommunityToolkit.Datasync.Client.Http;
88
using CommunityToolkit.Datasync.Client.Offline;
99
using Microsoft.EntityFrameworkCore;
10+
using Microsoft.EntityFrameworkCore.Infrastructure;
1011
using System;
1112
using System.Linq;
1213
using System.Threading;

0 commit comments

Comments
 (0)