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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -