/ Published in: C#
Expand |
Embed | Plain Text
public class ProductDataRepository : IProductDataRepository { private MyDatabase_ModelContainer _model; protected internal MyDatabase_ModelContainer Model { get { if (_model == null) { } return _model; } } public IQueryable<Product> GetProducts() { return Model.Products.Where(p => p.IsDeleted == false); } }
You need to login to post a comment.
