initial
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
17
COA.EnterpriseServices.DataAccess/IDataAccess.cs
Normal file
17
COA.EnterpriseServices.DataAccess/IDataAccess.cs
Normal 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);
|
||||
}
|
||||
}
|
7
COA.EnterpriseServices.DataAccess/IRecord.cs
Normal file
7
COA.EnterpriseServices.DataAccess/IRecord.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace COA.EnterpriseServices.DataAccess
|
||||
{
|
||||
public interface IRecord
|
||||
{
|
||||
int Id { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user