Hi there I am using Linq to Entities and I have a junction table (many to many) userroles between users and roles since it is a junction table it is not available in the Ado.net entity model.
Is there a way to query this table using Linq to entities. (I need to retrieve all data in my table userroles)
Thanks
您可以将ExecuteSqlCommand方法用于此类查询。
context.Database.ExecuteSqlCommand("Your SQL Script");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.