Exemplo n.º 1
0
 public IQueryable <Property> GetProperties([ScopedService] TenantFileContext tenantContext) => tenantContext.Properties.AsQueryable();
Exemplo n.º 2
0
 public IQueryable <Residence> GetResidences([ScopedService] TenantFileContext tenantContext) => tenantContext.Residences.AsQueryable();
Exemplo n.º 3
0
 public IQueryable <Address> GetAddresses([ScopedService] TenantFileContext tenantContext) => tenantContext.Addresses.AsQueryable();
Exemplo n.º 4
0
 public IQueryable <Image> GetImages([ScopedService] TenantFileContext tenantContext) => tenantContext.Images.AsNoTracking();
Exemplo n.º 5
0
 public IQueryable <Tenant> GetTenants([ScopedService] TenantFileContext tenantContext) => tenantContext.Tenants.AsQueryable();
 public OrganizerController(TenantFileContext context)
 {
     this.context = context;
 }
Exemplo n.º 7
0
 public SmsController(ILogger <SmsController> logger, ICloudStorage storageClient, IConfiguration configuration, TenantFileContext context, [Service] ITopicEventSender eventSender, GoogleDriveService driveService)
 {
     this.eventSender   = eventSender;
     this.logger        = logger;
     this.storageClient = storageClient;
     this.context       = context;
     this.keyWords      = new List <string>()
     {
     };
     this.keyPhrases = new List <string>()
     {
         "written request for repairs"
     };
     this.driveService = driveService;
 }
Exemplo n.º 8
0
 public async Task <List <Phone> > GetTenantlessPhonesAsync(
     [ScopedService] TenantFileContext tenantContext) =>
 await tenantContext.Phones
 .AsQueryable()
 .Where(p => p.Tenants.Count == 0)                 //default for int is 0 so if Tenants==null, it should still return 0. Evaluating null Tenant list throws implementation exception
 .ToListAsync();
Exemplo n.º 9
0
 public IQueryable <Phone> GetPhones([ScopedService] TenantFileContext tenantContext) => tenantContext.Phones.AsQueryable().Include(p => p.Tenants);