Create general structures in Mongo and SQL

This commit is contained in:
Sergio Matias Urquin
2025-05-18 15:49:46 -06:00
parent 144a6c14c0
commit c7953250fc
51 changed files with 370 additions and 365 deletions

View File

@@ -0,0 +1,15 @@
using Lib.Architecture.BuildingBlocks;
namespace Core.Blueprint.Application.UsesCases.SQL.Input
{
public class CreateSqlSampleRequest : Notificator, ICommand
{
public string Name { get; set; } = null!;
public string Description { get; set; } = null!;
public bool Validate()
{
return Name != null && Name != string.Empty;
}
}
}

View File

@@ -1,16 +0,0 @@
using Lib.Architecture.BuildingBlocks;
namespace Core.Blueprint.Application.UsesCases.SQL.Input
{
public class CreateUserProjectRequest : Notificator, ICommand
{
public string ProjectCode { get; set; } = null!;
public string ProjectDescription { get; set; } = null!;
public string UserId { get; set; } = null!;
public bool Validate()
{
return ProjectCode != null && ProjectCode != string.Empty;
}
}
}

View File

@@ -2,7 +2,7 @@
namespace Core.Blueprint.Application.UsesCases.SQL.Input
{
public class DeleteUserProjectRequest : Notificator, ICommand
public class DeleteSqlSampleRequest : Notificator, ICommand
{
public int Id { get; set; }

View File

@@ -2,7 +2,7 @@
namespace Core.Blueprint.Application.UsesCases.SQL.Input
{
public class GetAllUserProjectsRequest : Notificator, ICommand
public class GetAllSqlSamplesRequest : Notificator, ICommand
{
public bool Validate()
{

View File

@@ -2,7 +2,7 @@
namespace Core.Blueprint.Application.UsesCases.SQL.Input
{
public class GetUserProjectRequest : Notificator, ICommand
public class GetSqlSampleRequest : Notificator, ICommand
{
public int Id { get; set; }

View File

@@ -3,11 +3,10 @@ using Lib.Architecture.BuildingBlocks;
namespace Core.Blueprint.Application.UsesCases.SQL.Input
{
public class UpdateUserProjectRequest : Notificator, ICommand
public class UpdateSqlSampleRequest : Notificator, ICommand
{
public string ProjectCode { get; set; } = null!;
public string ProjectDescription { get; set; } = null!;
public string UserId { get; set; } = null!;
public string Name { get; set; } = null!;
public string Description { get; set; } = null!;
public int Id { get; set; }
public string Guid { get; set; } = null!;
public DateTime CreatedAt { get; set; }