From df74b67d445f87565ea52fdb73f7303b0f6a9065 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Tue, 23 Jan 2024 18:00:24 +1100 Subject: [PATCH] Fix injection. --- MyApp/ServiceInterface/TodosServices.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MyApp/ServiceInterface/TodosServices.cs b/MyApp/ServiceInterface/TodosServices.cs index 663b257..af45e41 100644 --- a/MyApp/ServiceInterface/TodosServices.cs +++ b/MyApp/ServiceInterface/TodosServices.cs @@ -5,10 +5,8 @@ namespace MyApp.ServiceInterface; -public class TodosServices : Service +public class TodosServices(IAutoQueryData AutoQuery) : Service { - public IAutoQueryData AutoQuery { get; set; } - static readonly PocoDataSource Todos = PocoDataSource.Create(new Todo[] { new () { Id = 1, Text = "Learn" },