بلاخره تموم شد
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System.Data;
|
||||
|
||||
namespace VizhTalk.BuildingBlocks.Application.Data;
|
||||
|
||||
public interface ISqlConnectionFactory
|
||||
{
|
||||
IDbConnection GetOpenConnection();
|
||||
|
||||
IDbConnection CreateNewConnection();
|
||||
|
||||
string GetConnectionString();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using VizhTalk.BuildingBlocks.Domain;
|
||||
using VizhTalk.BuildingBlocks.Domain.Contract;
|
||||
|
||||
namespace VizhTalk.BuildingBlocks.Application;
|
||||
|
||||
public interface IExecutor
|
||||
{
|
||||
Task Execute(ICommand command, CancellationToken cancellationToken = default);
|
||||
Task<TResult> Execute<TResult>(ICommand<TResult> command, CancellationToken cancellationToken = default);
|
||||
Task<TResult> Execute<TResult>(IQuery<TResult> query, CancellationToken cancellationToken = default);
|
||||
Task Execute(IDomainEvent notification, CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace VizhTalk.BuildingBlocks.Application;
|
||||
|
||||
public interface IUnitOfWorkBase : IDisposable
|
||||
{
|
||||
Task<int> CommitAsync(
|
||||
CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -7,11 +7,11 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\VizhTalk.BuildingBlocks.Domain\VizhTalk.BuildingBlocks.Domain.csproj" />
|
||||
<PackageReference Include="Mapster" Version="7.4.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Data\" />
|
||||
<ProjectReference Include="..\VizhTalk.BuildingBlocks.Domain\VizhTalk.BuildingBlocks.Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user