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

16 lines
322 B
C#

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace COA.EnterpriseServices.DataAccess
{
public interface IDataAccess<T> where T : class, IRecord
{
bool Add(T item);
bool Update(T item);
ICollection<T> Get(Expression<Func<T, bool>> query);
}
}