This commit is contained in:
2020-10-13 20:56:53 -04:00
commit 3c6e421dbf
12 changed files with 559 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace COA.EnterpriseServices.DataAccess
{
public interface IDataAccess<T> where T : IRecord
{
bool Add(T item);
bool Update(T item);
ICollection<T> Get(int id);
ICollection<T> Get(Expression<Func<T, bool>> query);
}
}

View File

@ -0,0 +1,7 @@
namespace COA.EnterpriseServices.DataAccess
{
public interface IRecord
{
int Id { get; set; }
}
}