Exemple #1
0
 public async Task <IList <Item> > Get(int userId, string typeIdString)
 {
     return(await QueryWithOptional
            .Where(i => i.UserId == userId && i.ClassName == typeIdString)
            .Include(d => d.ItemProperties)
            .ToListAsync());
 }
Exemple #2
0
 public async Task <UserFile> GetByName(int userId, string fileName)
 {
     return(await QueryWithOptional.FirstOrDefaultAsync(f => f.UserId == userId && f.FileName == fileName));
 }
Exemple #3
0
 public async Task <int> GetFileId(int userId, string fileName)
 {
     return(await QueryWithOptional.Where(f => f.UserId == userId && f.FileName == fileName).Select(f => f.UserFileId).FirstOrDefaultAsync());
 }
Exemple #4
0
 public async Task <IList <string> > GetFileNames(int userId)
 {
     return(await QueryWithOptional.Where(f => f.UserId == userId).Select(f => f.FileName).ToListAsync());
 }
Exemple #5
0
 public async Task <IList <Item> > Get(string typeIdString)
 {
     return(await QueryWithOptional.Where(m => m.ClassName == typeIdString).Include(d => d.ItemProperties).ToListAsync());
 }