I want add CompanyID filter to my all entity framework request.Because each user must see just their records.I dont want add filter (x=>x.CompanyID == cID) all methods in bu
You can also extend the object context and add an extension method that returns IQueryable
object context
Like
public class CustomdbContext : DbContext { public IQueryable ApplyCustomerFilter(IQueryable query) where TEntity : Customer { return query.Where(x => x.CustomerId == customerctxId); } }