laatzen/LaaProductionWeb/LaaProduction.SQL/Interfaces/ISQLCommand.cs
2024-07-17 13:13:41 +02:00

21 lines
530 B
C#

namespace LaaProduction.SQL.Interfaces
{
using System;
using System.Collections.Generic;
public interface ISQLCommand
{
Int32 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);
}
}