using System; using System.Collections.Generic; using System.Linq.Expressions; namespace COA.EnterpriseServices.DataAccess { public interface IDataAccess where T : class, IRecord { /// /// Adds an item of type to the context /// /// /// bool Add(T item); /// /// Updates an item of type in the context /// /// /// bool Update(T item); /// /// Gets an item collection of type from the context /// /// /// ICollection Get(Expression> query); /// /// Allows support for invoking a raw command if supported by the instance /// /// /// /// ICollection Raw(string command, params object[] parameters); } }