Update

Tweaks and using LINQ experssions.

Gotta test this.
DeployableObject has no Name property with a capital N.  You are confusing Entity with the object that Entity wraps.