Exemplo n.º 1
0
        /// <summary>
        /// Create a new LiteDbAccess instance.
        /// </summary>
        /// <param name="liteDbConfig">The LiteDb configuration.</param>
        public LiteDbAccess(LiteDbConfig liteDbConfig)
        {
            var liteDatabase   = new LiteDatabase(liteDbConfig.ConnectionString);
            var collectionName = liteDbConfig.CollectionName;

            Collection = liteDatabase.GetCollection <LiteDbConnectorEntity>(collectionName);
        }
Exemplo n.º 2
0
 public AppSettingsController(AppConfig appConfig,
                              LiteDbConfig liteDbConfig,
                              IOptionsMonitor <UserOptionConfig> userOptionConfig)
 {
     _appConfig        = appConfig;
     _liteDbConfig     = liteDbConfig;
     _userOptionConfig = userOptionConfig.CurrentValue;
 }
Exemplo n.º 3
0
 public HomeController(ILogger <HomeController> logger,
                       IMessageServiceA messageService,
                       LiteDbConfig liteDbConfig,
                       GuidProvider guidHelper)
 {
     _logger         = logger;
     _messageService = messageService;
     _messageService = new MessageServiceAA();
     _guidHelper     = guidHelper;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Create a new LiteDbWrapper instance.
 /// </summary>
 /// <param name="liteDbConfig">The LiteDbConfig connector config.</param>
 public LiteDbWrapper(LiteDbConfig liteDbConfig)
 {
     _liteDbAccess = new LiteDbAccess(liteDbConfig);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Create a new LiteDbOperations instance.
 /// </summary>
 /// <param name="liteDbConfig">The LiteDb connector config.</param>
 public LiteDbOperations(LiteDbConfig liteDbConfig)
 {
     _liteDbWrapper = new LiteDbWrapper(liteDbConfig);
 }