Added component metadata to partial class
Removed IPersistPropertyBag reference since no propertybag properties is used.