Example #1
0
        public static void SeedHostDb(LMSDbContext context)
        {
            context.SuppressAutoSetTenantId = true;

            // Host seed
            new InitialHostDbBuilder(context).Create();

            // Default tenant seed (in host database).
            new DefaultTenantBuilder(context).Create();
            new TenantRoleAndUserBuilder(context, 1).Create();
        }
Example #2
0
 public DefaultLanguagesCreator(LMSDbContext context)
 {
     _context = context;
 }
Example #3
0
 public DefaultTenantBuilder(LMSDbContext context)
 {
     _context = context;
 }
Example #4
0
 public HostRoleAndUserCreator(LMSDbContext context)
 {
     _context = context;
 }
Example #5
0
 // Constructor using dependency injection
 public HoldService(LMSDbContext context)
 {
     db = context;
 }
Example #6
0
 // Constructor using dependency injection
 public BookService(LMSDbContext context)
 {
     db = context;
 }
Example #7
0
 // Constructor using dependency injection
 public PatronService(LMSDbContext context)
 {
     db = context;
 }
Example #8
0
 // Constructor using dependency injection
 public DonorService(LMSDbContext context)
 {
     db = context;
 }
Example #9
0
 public TenantRoleAndUserBuilder(LMSDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 // Constructor using dependency injection
 public NotificationService(LMSDbContext context)
 {
     db = context;
 }
 // Constructor using dependency injection
 public Library_MaterialService(LMSDbContext context)
 {
     db = context;
 }
Example #12
0
 // Constructor using dependency injection
 public EmployeeService(LMSDbContext context)
 {
     db = context;
 }
Example #13
0
 // Constructor using dependency injection
 public TeacherService(LMSDbContext context)
 {
     db = context;
 }
Example #14
0
 public DefaultSettingsCreator(LMSDbContext context)
 {
     _context = context;
 }
Example #15
0
        // Constructor using dependency injection

        public TimeSlotService(LMSDbContext context)

        {
            db = context;
        }
Example #16
0
 // Constructor using dependency injection
 public LibraryMaterilaAuthorService(LMSDbContext context)
 {
     db = context;
 }
Example #17
0
 // Constructor using dependency injection
 public SharedVariablesService(LMSDbContext context)
 {
     db = context;
 }
Example #18
0
        //ILogger<String> Logger = new ILogger<String>() ;

        // Constructor using dependency injection
        public AuthorService(LMSDbContext context)
        {
            db = context;
        }
Example #19
0
 public InitialHostDbBuilder(LMSDbContext context)
 {
     _context = context;
 }
Example #20
0
 // Constructor using dependency injection
 public PublisherService(LMSDbContext context)
 {
     db = context;
 }
Example #21
0
 public TaskRepository(LMSDbContext context)
 {
     set = context.Set <Task>();
 }
Example #22
0
 // Constructor using dependency injection
 public ParentService(LMSDbContext context)
 {
     db = context;
 }
Example #23
0
 public BasicRepository(LMSDbContext context)
 {
     set = context.Set <T>();
 }
Example #24
0
 // Constructor using dependency injection
 public CD_DVD_BR_Service(LMSDbContext context)
 {
     db = context;
 }
Example #25
0
 // Constructor using dependency injection
 public AddressService(LMSDbContext context)
 {
     db = context;
 }
Example #26
0
 public DefaultEditionCreator(LMSDbContext context)
 {
     _context = context;
 }
Example #27
0
 // Constructor using dependency injection
 public BorrowingService(LMSDbContext context)
 {
     db = context;
 }
Example #28
0
 // Constructor using dependency injection
 public ScheduleService(LMSDbContext context)
 {
     db = context;
 }
Example #29
0
 // Constructor using dependency injection
 public LibraryService(LMSDbContext context)
 {
     db = context;
 }
Example #30
0
 // Constructor using dependency injection
 public JournalService(LMSDbContext context)
 {
     db = context;
 }