I`m newbie with EntityDac just experimenting with it, and I have tree model
and I want to load whole data at startup, but as I see referenced columns load after they first time have been accessed and are there any ways to load whole referenced columns data at once at startup?
I have code like this
Code: Select all
var tour: TAbTournamentVw; begin tour := DBM.EntityContext1.GetEntity<TAbTournamentVw>('tourid=1456'); showmessage(inttostr(tour.AbCategoryVw.Catid)); // when access first time this property after this runs query to load category data showmessage(inttostr(tour.AbCategoryVw.AbSportsVw.Id)); // when access first time this property this property after this runs query to load sport data