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

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -