c# - OData subset based on user -
i have odata source in form of sql server database access via entity framework. additionally have database table maps entities users, specific user can access specific entities.
public class product { [key] public int id { get; set; } public string name { get; set; } public decimal price { get; set; } } public class usermapping { [key] public int entityid { get; set; } [key] public int userid { get; set; }
is possible add sql join in entity framework dbcontext in way when user asks products receive ones have access to?
Comments
Post a Comment