Es wurden Überladungen für ExecuteFirstAsync, ExecuteSingleAsync und ExecuteAllAsync eingeführt, die SQL-Definitionen aus dem Dependency Injection Container mittels ISQL<T> auflösen. Außerdem wurde ein Fehler bei der Verwendung der Direktive von .cs zu standardmäßigem Schnittstellenimport korrigiert.
20 lines
495 B
C#
20 lines
495 B
C#
namespace EnvelopeGenerator.Application.Contracts.SQLExecutor;
|
|
|
|
/// <summary>
|
|
/// Represents a raw SQL query contract.
|
|
/// </summary>
|
|
public interface ISQL
|
|
{
|
|
/// <summary>
|
|
/// Gets the raw SQL query string.
|
|
/// </summary>
|
|
string Raw { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents a typed SQL query contract for a specific entity.
|
|
/// </summary>
|
|
/// <typeparam name="TEntity">The type of the entity associated with the SQL query.</typeparam>
|
|
public interface ISQL<TEntity> : ISQL
|
|
{
|
|
} |