Skip to content

Instantly share code, notes, and snippets.

@thePunderWoman
Created October 17, 2012 14:59
Show Gist options
  • Save thePunderWoman/3905995 to your computer and use it in GitHub Desktop.
Save thePunderWoman/3905995 to your computer and use it in GitHub Desktop.
List Comparison
vehicle = (from ve in db2.vcdb_Vehicles
where ve.VehicleConfig.VehicleConfigAttributes.Count.Equals(vehicleAttribs.Count)
&& ve.VehicleConfig.VehicleConfigAttributes.All(p => attrIDs.Contains(p.AttributeID))
select ve).First<vcdb_Vehicle>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment