public static EntityObjectStoreConfiguration EntityObjectStoreConfig() { var config = new EntityObjectStoreConfiguration(); config.UsingEdmxContext("Model").AssociateTypes(AssociatedTypes); config.SpecifyTypesNotAssociatedWithAnyContext(() => new[] { typeof(AWDomainObject) }); return(config); }
protected override void RegisterTypes(IUnityContainer container) { base.RegisterTypes(container); var config = new EntityObjectStoreConfiguration { EnforceProxies = false }; config.UsingEdmxContext("Model"); container.RegisterInstance <IEntityObjectStoreConfiguration>(config, (new ContainerControlledLifetimeManager())); }