Refactor SQL execution classes into new namespace

Restructure and refactor classes related to SQL execution within the `EnvelopeGenerator.Infrastructure` namespace. Key changes include:
- Added `EnvelopeGenerator.Infrastructure.Executor` namespace.
- Moved and redefined `Query`, `QueryExtension`, `SQLExecutor`, `SQLExecutorBaseEntity`, and `SQLExecutorParams` classes to the new namespace.
- Maintained existing functionality while improving code organization and clarity.
This commit is contained in:
Developer 02 2025-05-05 10:54:09 +02:00
parent a42e4287ff
commit 7b7aba6efd
6 changed files with 7 additions and 7 deletions

View File

@ -8,6 +8,7 @@ using EnvelopeGenerator.Domain.Entities;
using DigitalData.Core.Infrastructure.AutoMapper;
using EnvelopeGenerator.Application.Contracts.SQLExecutor;
using Microsoft.Extensions.Configuration;
using EnvelopeGenerator.Infrastructure.Executor;
namespace EnvelopeGenerator.Infrastructure;

View File

@ -1,8 +1,7 @@
using AngleSharp.Dom;
using EnvelopeGenerator.Application.Contracts.SQLExecutor;
using EnvelopeGenerator.Application.Contracts.SQLExecutor;
using Microsoft.EntityFrameworkCore;
namespace EnvelopeGenerator.Infrastructure;
namespace EnvelopeGenerator.Infrastructure.Executor;
public sealed record Query<TEntity> : IQuery<TEntity>
{

View File

@ -1,4 +1,4 @@
namespace EnvelopeGenerator.Infrastructure;
namespace EnvelopeGenerator.Infrastructure.Executor;
public static class QueryExtension
{

View File

@ -4,7 +4,7 @@ using Microsoft.Data.SqlClient;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
namespace EnvelopeGenerator.Infrastructure;
namespace EnvelopeGenerator.Infrastructure.Executor;
public class SQLExecutor : ISQLExecutor
{

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
namespace EnvelopeGenerator.Infrastructure;
namespace EnvelopeGenerator.Infrastructure.Executor;
public sealed class SQLExecutor<T> : SQLExecutor, ISQLExecutor<T> where T : class
{

View File

@ -1,4 +1,4 @@
namespace EnvelopeGenerator.Infrastructure;
namespace EnvelopeGenerator.Infrastructure.Executor;
public class SQLExecutorParams
{