public MessagingRepository(IDatabaseSettings dbSettings)
        {
            CheckSettings(dbSettings);

            context = new MessagingContext(dbSettings);
            context.Database.EnsureCreated();
            dbset = context.Set <T>();
        }
Esempio n. 2
0
 public Repository(IDatabaseSettings dbSettings)
 {
     this.dbSettings = dbSettings;
     context         = new MessagingContext(dbSettings);
     dbset           = context.Set <T>();
 }