Exemplo n.º 1
0
        public static void Init(IRepoFactory customRepoFactory = null, ModelMetadataProvider customModelMetadataProvider = null, IModelBinder defaultModelBinder = null)
        {
            if (customModelMetadataProvider == null)
            {
                ModelMetadataProviders.Current = new SupermodelTemplateMetadataProvider();
            }
            else
            {
                ModelMetadataProviders.Current = customModelMetadataProvider;
            }

            if (defaultModelBinder == null)
            {
                ModelBinders.Binders.DefaultBinder = new SupermodelDefaultModelBinder();
            }
            else
            {
                ModelBinders.Binders.DefaultBinder = defaultModelBinder;
            }

            if (customRepoFactory != null)
            {
                RepoFactory.RegisterCustomRepoFactory(customRepoFactory);
            }
        }
Exemplo n.º 2
0
        public AuthController(IRepoFactory repoFactory)
        {
            _repoFactory = repoFactory;

            _users = _repoFactory.Users
                     .GetUsers()
                     ?.ToList();
        }
Exemplo n.º 3
0
 public BaseController(IRepoFactory repoFactory, JokesContext context, IConfiguration config, IHttpContextAccessor httpContext, IMapper mapper)
 {
     if (!hasLoadedData)
     {
         AddTestData(context);
     }
     _repoFactory         = repoFactory;
     _repoFactory.Context = context;
     _config      = config;
     _httpContext = httpContext;
     _mapper      = mapper;
 }
 public CityColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 5
0
 public Service1(ITestService testService, IRepoFactory repoFactory)
 {
     _testService = testService;
     _repoFactory = repoFactory;
 }
Exemplo n.º 6
0
 public ValFactory()
 {
     _factory = new RepoFactory();
 }
Exemplo n.º 7
0
 public ProjectsController(IRepoFactory repoFactory, ICacheService cacheService)
 {
     _repoFactory  = repoFactory;
     _cacheService = cacheService;
 }
 public SubTaskService(IRepoFactory repoFactory, IMapper mapper)
 {
     this.repoFactory = repoFactory;
     this.mapper      = mapper;
 }
Exemplo n.º 9
0
 public PhoneColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
 public DateTimeColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 11
0
 public PayRepo(IRepoFactory repoFactory) => RepoFactory = repoFactory;
Exemplo n.º 12
0
 public UserRepo(IRepoFactory repoFactory) => RepoFactory = repoFactory;
Exemplo n.º 13
0
 public DbLogsController(IRepoFactory repoFactory) => _repoFactory = repoFactory;
Exemplo n.º 14
0
 public EmailColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 15
0
 private void frmRegistrarCuota_Load(object sender, EventArgs e)
 {
     this.Cuota = new clsCuota();
     RepoF = new clsRepoFactory();
     this.ActualizarGrillaAlumnos();
     rdNombre.Checked = true;
     rdNombreCurso.Checked = true;
 }
Exemplo n.º 16
0
 public StoriesController(IRepoFactory repoFactory, ICacheService cacheService, IEmailService emailService)
 {
     _repoFactory  = repoFactory;
     _cacheService = cacheService;
     _emailService = emailService;
 }
 protected StringColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 18
0
 public FilesController(IRepoFactory repoFactory)
 {
     _repoFactory = repoFactory;
 }
 public AutoincColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 20
0
 public RegionColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
 public PostalCodeColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 22
0
 public RandomTextColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 23
0
 public NumberColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 24
0
 public static void RegisterCustomRepoFactory(IRepoFactory customRepoFactory)
 {
     _customRepoFactoryList.Add(customRepoFactory);
 }
Exemplo n.º 25
0
 public FirstNameColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 26
0
        public ValuesController(IRepoFactory repoFactory)
        {
            var p = repoFactory.Projects.GetProjects(null);

            _repoFactory = repoFactory;
        }
 public BooleanColumnValueStrategy(IRepoFactory repoFactory) : base(repoFactory)
 {
 }
Exemplo n.º 28
0
 public InspirationService(IRepoFactory repoFactory, ITextAnalyticsService textAnalytics)
 {
     _repoFactory   = repoFactory;
     _textAnalytics = textAnalytics;
 }
Exemplo n.º 29
0
 public UserService(IRepoFactory repoFactory) => UserRepo = new UserRepo(repoFactory);
Exemplo n.º 30
0
 public JokeController(IRepoFactory repoFactory, JokesContext context, IConfiguration config, IHttpContextAccessor httpContext, IMapper mapper)
     : base(repoFactory, context, config, httpContext, mapper)
 {
     _baseRepo = repoFactory.JokesRepo;
 }
Exemplo n.º 31
0
 protected ColumnValueStrategyBase(IRepoFactory repoFactory)
 {
     RepoFactory = repoFactory;
 }
Exemplo n.º 32
0
 public Add(IRepoFactory repo1)
 {
     RepositoryFactory = repo1;
 }