new sql server data client under .net core 2
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user