Skip to content

Commit

Permalink
Move Services and tests to file scoped namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 23, 2024
1 parent 58541fe commit 0ec2089
Show file tree
Hide file tree
Showing 32 changed files with 1,656 additions and 1,716 deletions.
21 changes: 10 additions & 11 deletions Test.ServiceInterface/AutoQueryServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
using Test.ServiceModel;
using Test.ServiceModel.Types;

namespace Test.ServiceInterface
{
public class QueryItems : QueryDb<Item,Poco> {}
namespace Test.ServiceInterface;

public class QueryItems : QueryDb<Item,Poco> {}

public class AutoQueryServices : Service
{
public IAutoQueryDb AutoQuery { get; set; }
public class AutoQueryServices : Service
{
public IAutoQueryDb AutoQuery { get; set; }

public async Task<object> Any(QueryItems request)
{
using var db = AutoQuery.GetDb(request, base.Request);
return await AutoQuery.ExecuteAsync(request, AutoQuery.CreateQuery(request, Request, db), db);
}
public async Task<object> Any(QueryItems request)
{
using var db = AutoQuery.GetDb(request, base.Request);
return await AutoQuery.ExecuteAsync(request, AutoQuery.CreateQuery(request, Request, db), db);
}
}
Loading

0 comments on commit 0ec2089

Please sign in to comment.