Вот этот метод интересует:
DbPicture[] GetImages(string[] keys)
public interface IContentRepository
{
void AddImage(DbPicture image);
void AddImages(DbPicture[] images);
DbPicture[] GetImages(string[] keys);
DbPicture GetImage(string key);
}
public class ContentRepository : IContentRepository
{
private readonly ContentDbContext _context;
public ContentRepository()
{
_context = new ContentDbContext();
}
public void AddImage(DbPicture image)
{
_context.Pictures.Add(image);
_context.SaveChangesAsync();
}
public void AddImages(DbPicture[] images)
{
_context.Pictures.AddRange(images);
_context.SaveChangesAsync();
}
public DbPicture[] GetImages(string[] keys)
{
return _context.Pictures. ??????????????????????;
}
public DbPicture GetImage(string key)
{
return _context.Pictures.Find(key);
}
}