How to load varbinary(max) fields only when necessary with ADO.NET Entity Framework?
问题 I have a varbinary(max) field in one of my tables but I don't need it every time and I'm looking for a way to fetch it from the database only when necessary. I'm using ADO.NET Entity Framework. How to do that? 回答1: The solution was to create a separate table with the varbinary field and make 1-to-1 relationship between the tables 回答2: It is not necessarily to create separate table. You should do several steps. Let's assume that we have table 'Documents' (Id, Name, Data (varbinary)). Open EF