Greg,
Dependencies are only satisfied if the part in question is managed by MEF. If you simply new up your JetDbInitializer, MEF has no awareness of it and won't satisfy any dependencies. You have two options.
First option, you can manually satisfy the dependencies by passing the JetDbInitializer instance to Composition.BuildUp(). For example you can do that in the JetDbInitializer ctor by calling Composition.BuildUp(this).
The other option, you export the JetDbInitializer and then create the instance by calling Composition.GetInstance<JetDbInitializer>().
[Export, PartCreationPolicy(CreationPolicy.NonShared)]
public class JetDbInitializer : CreateDatabaseIfNotExists<JetDbContext>
{
[ImportMany]
public IEnumerable<ISeedDatabase> Seeds { get; set; }
}
Edited by mgood - 08-Feb-2013 at 11:11am