Hello,
I found this thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=9062&HighLight=1
, but it did not come to a final conclusion.
I am interested in hiding certain fields and, in addition, preventing them from being fetched by default. My use case is as follows:
I have some tables which contain file information + binary data containing the file contents. I would like to retrieve the file info without the binary data, then implement a lazy load property/function which will retrieve only the binary data as needed. Here's an example of my model:
class SomeFile
{
public string FileName { get; set; }
public string FileType { get; set; }
public DateTime CreatedAt { get; set; }
public byte[] Data { get; set; }
}
Does LLBLGen provide a way that I can retrieve all fields EXCEPT "byte[] Data" when I fetch the entity? Ideally, I would like to accomplish this with a single class instead of making 2 copies of "SomeFile", one with Data and one without.
I'm using v3.1 with Adapter mode.
Thanks in advance,
-- Rob