21 lines
568 B
C#
21 lines
568 B
C#
namespace LaaProductionWeb.Data.Interfaces
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public interface IFluentSQLCommand
|
|
{
|
|
int ExecuteNonQuery();
|
|
|
|
IEnumerable<T> ExecuteReader<T>(Func<IFluentSQLReader, T> expression);
|
|
|
|
T ExecuteScalar<T>(Func<IFluentSQLReader, T> expression);
|
|
|
|
T FirstOrDefault<T>(Func<IFluentSQLReader, T> expression);
|
|
|
|
IFluentSQLCommand SetParameter(string name, object value);
|
|
|
|
IFluentSQLCommand SetParameters(IEnumerable<KeyValuePair<string, object>> parameters);
|
|
}
|
|
}
|