コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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) : ""
            };
        }
コード例 #4
0
        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"
            };
        }
コード例 #5
0
 public EFReviewRepository(IReviewEntityFactory entityFactory, IInterceptor[] interceptors = null)
     : this(ReviewConfiguration.Instance.Connection.SqlConnectionStringName, entityFactory, interceptors)
 {
 }
コード例 #6
0
 public EFReviewRepository(IReviewEntityFactory entityFactory, IInterceptor[] interceptors = null)
     : this(ReviewConfiguration.Instance.Connection.SqlConnectionStringName, entityFactory, interceptors)
 {
 }
コード例 #7
0
 public DSReviewClient(Uri serviceUri, IReviewEntityFactory factory, ISecurityTokenInjector tokenInjector)
     : base(serviceUri, factory, tokenInjector)
 {
 }
コード例 #8
0
 public DSReviewClient(IReviewEntityFactory entityFactory, ISecurityTokenInjector tokenInjector, IServiceConnectionFactory connFactory)
     : base(connFactory.GetConnectionString(ReviewConfiguration.Instance.Connection.DataServiceUri), entityFactory, tokenInjector)
 {
 }
コード例 #9
0
        public DSReviewClient(Uri serviceUri, IReviewEntityFactory factory, ISecurityTokenInjector tokenInjector)
			:base(serviceUri, factory, tokenInjector)
		{
		}
コード例 #10
0
		public DSReviewClient(IReviewEntityFactory entityFactory, ISecurityTokenInjector tokenInjector, IServiceConnectionFactory connFactory)
			: base(connFactory.GetConnectionString(ReviewConfiguration.Instance.Connection.DataServiceUri), entityFactory, tokenInjector)
		{
		}