new sql server data client under .net core 2

This commit is contained in:
Stoyan Zlatev
2023-06-07 09:19:08 +02:00
parent 6f8f892498
commit a0c6c02e36
16 changed files with 601 additions and 11 deletions
@@ -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);
}
}