How do I join on a constant in LINQ? -


I'm trying to connect one left to the static like this:

  SELECT [ T0]. [DeviceId], [t0]. [DeviceTypeId], [t0]. [UnitID], [T.] [Unit Num], [T]. [MANOFFON], [T.]. [Status], [t2 [device] AS [ServiceExpiration] FROM [dbo]. [Instrument] AS [T] Inner Join [DBO]. [Customer Devoice] AS [T1] On ([T.]. [DeviceID]) = [T1]. [Device ID] Leaving [DBO]. [Maintenance] AS [T2] ON ([T.]. [DeviceID]) = [T2]. [Deviceid] and 8 = [t2] .aidid  

I get this when I try this in LINQ like this:

  Var devices = d to db Connect the CD to the DD in the device. Customer Devices CD on D.eviceId Divorce is equal to joining service DB New {d.DeviceId, ActionId = 8} / CS1941 is equal to the new {serviceExpiration.DeviceId, ActionId = serviceExpiration.ActionId}, Ration in device J1.DefaultIfEmpty () ration  
Try

with Maintenances ActionId == 8 first, then go against it Use the.

  var expirations = Service retirement in DB Ensure that the termination of service ActionID == 8 Select service; Var device = db from db.Devices are included in dd in the CD. Customer Devices at D.DeviceId is equal to cd.DeviceId d.DeviceId = e.DeviceId in eDeviceId in the Termination of Service 1 Service in Service Service J1.DefaultIfEmpty () Select Device Termination;  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -