1
Answer

Showing data from two tables

Mark Tabor

Mark Tabor

Aug 07
354
1

Dear all I would like to ask a question I am having one property table in which I have (Id,Name,price,TypeID) TypeID is integer here and basically I have property type another table (id,type_name) 

now when i am binding my viewmodel like 

MYWM.Property=dbcontext.property.ToLuist(), it get all columns values from property table but the issue is for propertyID here i have id which I need to show property type name from property type table how to us include and add that column as well based in TypeID, in this line bcontext.property.ToLuist(), remember i have no forieng key specify only the matching thing is i have property type id in property table which mades with ID column of property type table 

Answers (1)
3
Amit Mohanty

Amit Mohanty

16 52.2k 6.1m 2y
You can use below query.
  1. -- If you have ClaimType value  
  2. SELECT * FROM Auth.AspNetUserClaims WHERE ClaimType = 'XYZ';  
  3.   
  4. OR  
  5.   
  6. -- If you have ClaimValue value  
  7. SELECT * FROM Auth.AspNetUserClaims WHERE ClaimValue = 2; 
Accepted
2
Rohan

Rohan

NA 1.4k 127k 2y
Thanx  Amit Mohanty
2
Uttam Kumar

Uttam Kumar

535 2.3k 285k 2y
select * from Auth.AspNetUserClaims where ClaimType='XYZ'

Try this query

1
Murali P

Murali P

1.5k 216 25.3k 2y
SELECT * FROM Auth.Claims WHERE ClaimType.TrialStatus='active' - This query not working
 
If  the Auth.Claims table having the TrailStatus column datatype as Boolean then use like below
 
SELECT * FROM Auth.Claims WHERE ClaimType.TrialStatus= 1 
1
Rohan

Rohan

NA 1.4k 127k 2y
Any Help me
1
Rohan

Rohan

NA 1.4k 127k 2y

SELECT * FROM Auth.Claims WHERE ClaimType.TrialStatus='active'  - This query not working