/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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); } }