how to structure an entity framework data layer class code example

Example: how to structure an entity framework data layer class

using Mm.DomainModel;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
 
namespace Mm.DataAccessLayer
{
    public interface IGenericDataRepository where T : class
    {
        IList GetAll(params Expression>[] navigationProperties);
        IList GetList(Func where, params Expression>[] navigationProperties);
        T GetSingle(Func where, params Expression>[] navigationProperties);
        void Add(params T[] items);
        void Update(params T[] items);
        void Remove(params T[] items);
    }
}

Tags:

Misc Example