I am using a library which allows for separate services to be called at runtime and design time. This allows me to have my view model return design time data, so that in the designer and blend I can see sample data.
Unfortunately, I'm not sure how to make this work with ideablade. At design time, how do I create a dummy object? Anything referencing an EntityManager breaks with
Object reference not set to an instance of an object.
at IdeaBlade.Core.IdeaBladeConfig.GetDefaultInstanceForEnvironment() at IdeaBlade.Core.IdeaBladeConfig.InitializeFromSource() at IdeaBlade.Core.IdeaBladeConfig.Initialize() at IdeaBlade.Core.IdeaBladeConfig.get_Instance() at IdeaBlade.Core.IdeaBladeConfig.AssertNonDefaultVersion(Boolean throwIfDefault) at IdeaBlade.EntityModel.EntityManager..ctor(Boolean shouldConnect, String dataSourceExtension, EntityServiceOption entityServiceOption) at IdeaBlade.EntityModel.EntityManager..ctor(Boolean shouldConnect) at DataModel.PowerBillEntityManager..ctor(Boolean shouldConnect) in C:\Documents and Settings\foxm1\My Documents\Visual Studio 10\Projects\SilverlightApplication1\DataModel\PowerBillData.IB.Designer.cs:line 37 at DataModel.State.CreateDesignTime() in C:\Documents and Settings\foxm1\My Documents\Visual Studio 10\Projects\SilverlightApplication1\DataModel\State.cs:line 42 at SilverlightApplication1.Services.DesignTimeDataService.GetStates(ObservableCollection`1 stateList) in C:\Documents and Settings\foxm1\My Documents\Visual Studio 10\Projects\SilverlightApplication1\SilverlightApplication1\Services\DesignTime\DesignTimeDataService.cs:line 35 at SilverlightApplication1.ViewModels.HomeViewModel.GetData() in C:\Documents and Settings\foxm1\My Documents\Visual Studio 10\Projects\SilverlightApplication1\SilverlightApplication1\ViewModels\HomeViewModel.cs:line 68 at SilverlightApplication1.ViewModels.HomeViewModel.OnServicesInjectedOverride() in C:\Documents and Settings\foxm1\My Documents\Visual Studio 10\Projects\SilverlightApplication1\SilverlightApplication1\ViewModels\HomeViewModel.cs:line 57 at MEFedMVVM.Common.BaseViewModel.OnServicesInjected() in D:\installs\MEFedMVVM\MEFedMVVM-47585\MEFedMVVMDemo\MEFedMVVM\Common\BaseViewModel.cs:line 24 at MEFedMVVM.ViewModelLocator.BasicViewModelInializer.TryInjectingServicesToVM(IViewModelMetadata vmMetaData, Object vm, Object containerContext, IEnumerable`1 dataServicesFactories) in D:\installs\MEFedMVVM\MEFedMVVM-47585\MEFedMVVMDemo\MEFedMVVM\ViewModelLocator\ViewModelInializer.cs:line 75
Any ideas? I'd hate to lose the ability to see design time data.