public EFReviewRepository(string nameOrConnectionString, IReviewEntityFactory entityFactory, IInterceptor[] interceptors = null) : base(nameOrConnectionString, entityFactory, interceptors: interceptors) { Database.SetInitializer(new ValidateDatabaseInitializer<EFReviewRepository>()); this.Configuration.AutoDetectChangesEnabled = true; this.Configuration.ProxyCreationEnabled = false; }
public EFReviewRepository(string nameOrConnectionString, IReviewEntityFactory entityFactory, IInterceptor[] interceptors = null) : base(nameOrConnectionString, entityFactory, interceptors: interceptors) { Database.SetInitializer(new ValidateDatabaseInitializer <EFReviewRepository>()); this.Configuration.AutoDetectChangesEnabled = true; this.Configuration.ProxyCreationEnabled = false; }
public ReviewEditViewModel(IRepositoryFactory <IReviewRepository> repositoryFactory, INavigationManager navManager, IReviewEntityFactory entityFactory, ReviewBase item) : base(entityFactory, item) { _repositoryFactory = repositoryFactory; _navManager = navManager; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); ViewTitle = new ViewTitleBase() { Title = "Reviews", SubTitle = (item != null && !string.IsNullOrEmpty(item.Title)) ? item.Title.ToUpper(CultureInfo.InvariantCulture) : "" }; }
public ReportViewModel( IReviewEntityFactory entityFactory, INavigationManager navManager, IReportingService reportingService, ReportInfo item) : base(entityFactory, item, false) { _navManager = navManager; _reportingService = reportingService; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); GenerateReportCommand = new DelegateCommand(() => ReloadReportData()); ClearParametersCommand = new DelegateCommand(RaiseClearParameters); ViewTitle = new ViewTitleBase() { SubTitle = item.Name, Title = "REPORT" }; }
public EFReviewRepository(IReviewEntityFactory entityFactory, IInterceptor[] interceptors = null) : this(ReviewConfiguration.Instance.Connection.SqlConnectionStringName, entityFactory, interceptors) { }
public DSReviewClient(Uri serviceUri, IReviewEntityFactory factory, ISecurityTokenInjector tokenInjector) : base(serviceUri, factory, tokenInjector) { }
public DSReviewClient(IReviewEntityFactory entityFactory, ISecurityTokenInjector tokenInjector, IServiceConnectionFactory connFactory) : base(connFactory.GetConnectionString(ReviewConfiguration.Instance.Connection.DataServiceUri), entityFactory, tokenInjector) { }
public DSReviewClient(Uri serviceUri, IReviewEntityFactory factory, ISecurityTokenInjector tokenInjector) :base(serviceUri, factory, tokenInjector) { }