Exemple #1
0
        public LiteClockWorkRepository(IOptions <LiteDbOptions> options)
        {
            _options = options.Value;

            var mapper = BsonMapper.Global;

            mapper.Entity <Unit>().DbRef(p => p.Worker, "workers");
        }
Exemple #2
0
 private static ClockWorkDatabase GetDatabase(LiteDbOptions options) => new ClockWorkDatabase(options.DatabaseFile);