Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to bind three table for a display table in Asp.Net Mvc 6

$
0
0

I want to use aspnetuserroles, aspnetusers and aspnetroles to display a new view model, in sql query as follows:

SELECT [dbo].[AspNetUserRoles].[UserId], [dbo].[AspNetUserRoles].[RoleId], [dbo].[AspNetRoles].[ConcurrencyStamp], [dbo].[AspNetRoles].[Name], [dbo].[AspNetRoles].[NormalizedName], [dbo].[AspNetUsers].[Email], [dbo].[AspNetUsers].[UserName]
FROM [dbo].[AspNetUserRoles] 
JOIN [dbo].[AspNetUsers] ON ([dbo].[AspNetUsers].[Id] = [dbo].[AspNetUserRoles].[UserId])
JOIN [dbo].[AspNetRoles] ON ([dbo].[AspNetRoles].[Id] = [dbo].[AspNetUserRoles].[RoleId])

How can I display a new table list in Asp.Net Mvc 6?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>