Can I lazy load scalar properties with the ADO.Net Entity Framework?

后端 未结 2 1116
旧巷少年郎
旧巷少年郎 2021-01-15 14:16

I\'ve got a database table Image with one huge column: Data.

\"One

I\'d rath

2条回答
  •  旧巷少年郎
    2021-01-15 14:46

    Yes I believe you do have to. I don't think it's possible with EF.

    You could make an explicit query for the columns you need, and then later for the data-column. Like the suggestion in this post:

    How to load varbinary(max) fields only when necessary with ADO.NET Entity Framework?

    But it seems like Linq To SQL provides the possibility, so I'll try to look into if it's coming to EF too.

提交回复
热议问题