Skip to content

Commit

Permalink
Fix injection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Jan 23, 2024
1 parent d80c701 commit df74b67
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MyApp/ServiceInterface/TodosServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Todo> Todos = PocoDataSource.Create(new Todo[]
{
new () { Id = 1, Text = "Learn" },
Expand Down

0 comments on commit df74b67

Please sign in to comment.