TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ankit Shukla
NA
681
116.1k
not equal in LINQ query
Sep 2 2019 5:44 AM
Hello,
I have a query and I need to use "Not equal" in this.
Query:
HRMSContext Entities = (
this
.HRMSRepository.Context
as
HRMSContext);
var query = from a
in
Entities.SCRB_t_UnidentifiedDeadBody_PS.Where(i => i.District == iDISTRICT_CD && i.PoliceStation == iPS_CD)
join ad
in
Entities.SCRB_t_UnidentifiedDeadBody on a.PanchnamaNo equals ad.PanchnamaNo
join d
in
Entities.m_district.Where(i => i.LANG_CD == 99) on a.District equals d.DISTRICT_CD
join p
in
Entities.m_police_station.Where(i => i.LANG_CD == 99 && i.DISTRICT_CD == iDISTRICT_CD) on a.PoliceStation equals p.PS_CD
select
new
{
PanchnamaNo = a.PanchnamaNo,
GDDate = a.GDDate,
Find_Date = a.Find_Date,
DISTRICT = d.DISTRICT
};
How to replace "equals(red color)" to "not equal" .
Please help.
Thanks in advance.
Reply
Answers (
3
)
i want to filter data with month id like 6
Nested foreach loop using Linq