示例#1
0
 public IQueryable <Property> GetProperties([ScopedService] TenantFileContext tenantContext) => tenantContext.Properties.AsQueryable();
示例#2
0
 public IQueryable <Residence> GetResidences([ScopedService] TenantFileContext tenantContext) => tenantContext.Residences.AsQueryable();
示例#3
0
 public IQueryable <Address> GetAddresses([ScopedService] TenantFileContext tenantContext) => tenantContext.Addresses.AsQueryable();
示例#4
0
 public IQueryable <Image> GetImages([ScopedService] TenantFileContext tenantContext) => tenantContext.Images.AsNoTracking();
示例#5
0
 public IQueryable <Tenant> GetTenants([ScopedService] TenantFileContext tenantContext) => tenantContext.Tenants.AsQueryable();
 public OrganizerController(TenantFileContext context)
 {
     this.context = context;
 }
示例#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;
 }
示例#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();
示例#9
0
 public IQueryable <Phone> GetPhones([ScopedService] TenantFileContext tenantContext) => tenantContext.Phones.AsQueryable().Include(p => p.Tenants);