Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// See the LICENSE file in the project root for more information.

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.EntityFrameworkCore.Infrastructure;

namespace TodoApp.BlazorWasm.Server.Database;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
// See the LICENSE file in the project root for more information.

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;

namespace TodoApp.Uno.Database;

public class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)

Check warning on line 10 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/Database/AppDbContext.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Microsoft.EntityFrameworkCore.DbContext.DbContext(DbContextOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. EF Core isn't fully compatible with trimming, and running the application may generate unexpected runtime failures. Some specific coding pattern are usually required to make trimming work properly, see https://aka.ms/efcore-docs-trimming for more details.

Check warning on line 10 in samples/todoapp/TodoApp.Uno/TodoApp.Uno/Database/AppDbContext.cs

View workflow job for this annotation

GitHub Actions / todoapp-uno / ios-maccatalyst

Using member 'Microsoft.EntityFrameworkCore.DbContext.DbContext(DbContextOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. EF Core isn't fully compatible with trimming, and running the application may generate unexpected runtime failures. Some specific coding pattern are usually required to make trimming work properly, see https://aka.ms/efcore-docs-trimming for more details.
//public class AppDbContext(DbContextOptions<AppDbContext> options) : OfflineDbContext(options)
{
public DbSet<TodoItem> TodoItems => Set<TodoItem>();
Expand Down
1 change: 1 addition & 0 deletions samples/todoapp/TodoApp.WPF/Database/AppDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using CommunityToolkit.Datasync.Client.Http;
using CommunityToolkit.Datasync.Client.Offline;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using TodoApp.WPF.Services;

namespace TodoApp.WPF.Database;
Expand Down
1 change: 1 addition & 0 deletions samples/todoapp/TodoApp.WinUI3/Database/AppDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using CommunityToolkit.Datasync.Client.Http;
using CommunityToolkit.Datasync.Client.Offline;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using System;
using System.Linq;
using System.Threading;
Expand Down
Loading