21 lines
528 B
C#
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);
|
|
}
|
|
}
|