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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -