COA.EnterpriseServices/COA.EnterpriseServices.DataAccess/IDataAccess.cs

18 lines
370 B
C#
Raw Normal View History

2020-10-14 00:56:53 +00:00
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace COA.EnterpriseServices.DataAccess
{
2020-10-14 01:24:27 +00:00
public interface IDataAccess<T> where T : class, IRecord
2020-10-14 00:56:53 +00:00
{
bool Add(T item);
bool Update(T item);
bool Update(int id, Action<T> update);
2020-10-14 00:56:53 +00:00
ICollection<T> Get(Expression<Func<T, bool>> query);
}
}