I have simple table with key, name and binary content. I need to load the binary content only when needed. This used to be extra simple in Linq2Sql, but in EF core 6 I cannot find anything except lazy loading of navigation collection, which is not what I need. Am'I missing something or is this missing in EF core ? Jiri
public class Content {
public int Id { get; set; }
public string Name { get; set; }
public byte[] Data { get; set; } // How to delay loading this ?
}
Command
ctx.Content.Select(x =x.Id==1);
Expected SQL is:
SELECT Id, Name FROM Content WHERE Id=1