Esempio n. 1
0
        public DataService WithScopedService(DataOptionsBuilder builder)
        {
            var scopedService = new DataService();

            scopedService.UseConfiguration(builder);
            return(scopedService);
        }
Esempio n. 2
0
 public void UseConfiguration(DataOptionsBuilder builder)
 {
     _data?.Dispose();
     _data = new EFFarmContext(builder.Build());
 }
Esempio n. 3
0
 public DataService(DataOptionsBuilder builder) // : base(options)
 {
     _lastOptions = builder.Build();
 }