Prev | Current Page 168 | Next

Satheesh, N Kumar

"LINQ Quickly"


LINQ to SQL
[ 104 ]
The following image shows the data loaded in the cat variable of type Categories. It
clearly shows that three Items in the Icecreams category are also loaded along with
the category. You can see the option IsDeferred, which is false. It shows that the
loading is not deferred loading.
There is a disadvantage in using immediate loading or loading of any entity object
with respect to performance. As there are some fields like Category description,
Item Ingredients and other fields that may not be required immediately. These
fields can be loaded with a delay, or maybe fetched whenever required.
This option can be set to the entities using the Object Relational Designer also. We
will see more details about this later in this chapter, but for now, consider entities
and the Properties page for each property in the entity. There is a property called
Delay Loaded, which can be set to True, in case, delay loading is required for the
entity object field, or False in case immediate loading is required for the field.


Pages:
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
gry on line życzenia ślubne gustowne meble katowice felgi aluminiowe poznań katalog firm