19 lines
443 B
C#
19 lines
443 B
C#
namespace LaaProduction.Data.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);
|
|
}
|
|
}
|