Initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
using System.Data;
|
||||
namespace SIG.Web.AppCode.Contracts.Database
|
||||
{
|
||||
public interface IDbConnectionFactory { IDbConnection CreateConnection(string domainName); }
|
||||
}
|
||||
11
SIG.Web/AppCode/Contracts/Database/IDbExecutor.cs
Normal file
11
SIG.Web/AppCode/Contracts/Database/IDbExecutor.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using SIG.Web.AppCode.Models.Common;
|
||||
|
||||
namespace SIG.Web.AppCode.Contracts.Database
|
||||
{
|
||||
public interface IDbExecutor
|
||||
{
|
||||
DbResult<T> Execute<T>(string domainName, Func<IDbConnection, T> action);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user