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:
parent
a42e4287ff
commit
7b7aba6efd
@ -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;
|
||||
|
||||
|
||||
@ -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>
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace EnvelopeGenerator.Infrastructure;
|
||||
namespace EnvelopeGenerator.Infrastructure.Executor;
|
||||
|
||||
public static class QueryExtension
|
||||
{
|
||||
@ -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
|
||||
{
|
||||
@ -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
|
||||
{
|
||||
@ -1,4 +1,4 @@
|
||||
namespace EnvelopeGenerator.Infrastructure;
|
||||
namespace EnvelopeGenerator.Infrastructure.Executor;
|
||||
|
||||
public class SQLExecutorParams
|
||||
{
|
||||
Loading…
x
Reference in New Issue
Block a user