laatzen/LaaProductionWeb/LaaProduction.SQL/Interfaces/ISQLCommand.cs
2024-03-06 12:48:08 +01:00

21 lines
528 B
C#

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