COA.EnterpriseServices/COA.EnterpriseServices.DataAccess/IDataAccess.cs
2020-10-13 20:56:53 -04:00

18 lines
352 B
C#

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);
}
}