laatzen/Common/Logic/Common.Logic.Extensions.SQL/Interfaces/ISQLCommand.cs
2024-07-01 08:42:23 +02:00

21 lines
510 B
C#

namespace Common.Logic.Extensions.SQL.Interfaces
{
using System;
using System.Collections.Generic;
public interface ISQLCommand
{
Int32 ExecuteNonQuery();
IEnumerable<T> ExecuteReader<T>(Func<ISQLReader, T> expression);
void ExecuteReader(Action<ISQLReader> expression);
T ExecuteScalar<T>(Func<ISQLReader, T> expression);
T FirstOrDefault<T>(Func<ISQLReader, T> expression);
ISQLCommand SetParameter(String name, Object value);
}
}