diff --git a/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoItemController.cs b/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoItemController.cs index 6a6badba..c91a77e6 100644 --- a/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoItemController.cs +++ b/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoItemController.cs @@ -16,5 +16,9 @@ public class TodoItemController : TableController public TodoItemController(AppDbContext context) : base(new EntityTableRepository(context)) { + // UnsafeEntityLogging is intentionally left at its secure default (false). + // This sample stores user-supplied TodoItem content (Title), so only the + // entity ID is logged; the full serialized entity is never written to the logs. + Options = new TableControllerOptions { UnsafeEntityLogging = false }; } } \ No newline at end of file diff --git a/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoListController.cs b/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoListController.cs index 830eeaa3..084333a5 100644 --- a/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoListController.cs +++ b/samples/datasync-server/src/Sample.Datasync.Server/Controllers/TodoListController.cs @@ -15,6 +15,9 @@ public class TodoListController : TableController { public TodoListController(AppDbContext context) : base(new EntityTableRepository(context)) { - Options = new TableControllerOptions { EnableSoftDelete = true }; + // UnsafeEntityLogging is intentionally left at its secure default (false). + // This sample stores user-supplied TodoList content (Title), so only the + // entity ID is logged; the full serialized entity is never written to the logs. + Options = new TableControllerOptions { EnableSoftDelete = true, UnsafeEntityLogging = false }; } } \ No newline at end of file diff --git a/samples/datasync-server/src/Sample.Datasync.Server/Sample.Datasync.Server.csproj b/samples/datasync-server/src/Sample.Datasync.Server/Sample.Datasync.Server.csproj index b15c196e..dc0d0f1e 100644 --- a/samples/datasync-server/src/Sample.Datasync.Server/Sample.Datasync.Server.csproj +++ b/samples/datasync-server/src/Sample.Datasync.Server/Sample.Datasync.Server.csproj @@ -7,12 +7,21 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive + + + +