Return to Snippet

Revision: 51384
at September 22, 2011 22:49 by cuperman007


Initial Code
public class ProductDataRepository : IProductDataRepository
{
    private MyDatabase_ModelContainer _model;
    protected internal MyDatabase_ModelContainer Model {
        get {
            if (_model == null) {
                _model = new MyDatabase_ModelContainer();
            }
            return _model;
        }
    }

    public IQueryable<Product> GetProducts() {
        return Model.Products.Where(p => p.IsDeleted == false);
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
EF UnitTesting Data Repository

Initial Tags

                                

Initial Language
C#