I have two tables:
PlanMaster (PlanName, Product_ID)
and
ProductPoints (Entity_ID, Product_ID, Comm1, Com
var td =
from s in cv.Entity_Product_Points
join r in dt.PlanMasters on s.Product_ID equals r.Product_ID
where s.Entity_ID == getEntity
select s;
=
not equal to ==
var db1 = (from a in AccYearEntity.OBLHManifests select a).ToList();
var db2 = (from a in MasterEntity.UserMasters select a).ToList();
var query = (from a in db1
join b in db2 on a.EnteredBy equals b.UserId
where a.LHManifestNum == LHManifestNum
select new { LHManifestId = a.LHManifestId, LHManifestNum = a.LHManifestNum, LHManifestDate = a.LHManifestDate, StnCode = a.StnCode, Operatr = b.UserName }).FirstOrDefault();
where s.Entity_ID = getEntity
should be where s.Entity_ID == getEntity
.
Try changing it to
where s.Entity_ID == getEntity
I think this will do,
where s.Entity_ID == getEntity
Shouldn't that be a double equals?