laatzen/LaaProductionWeb/FluentSQL/Interfaces/IFluentSQLCommand.cs
2023-06-07 09:19:08 +02:00

21 lines
568 B
C#

namespace LaaProductionWeb.Data.Interfaces
{
using System;
using System.Collections.Generic;
public interface IFluentSQLCommand
{
int ExecuteNonQuery();
IEnumerable<T> ExecuteReader<T>(Func<IFluentSQLReader, T> expression);
T ExecuteScalar<T>(Func<IFluentSQLReader, T> expression);
T FirstOrDefault<T>(Func<IFluentSQLReader, T> expression);
IFluentSQLCommand SetParameter(string name, object value);
IFluentSQLCommand SetParameters(IEnumerable<KeyValuePair<string, object>> parameters);
}
}