Witam,
Czytam sobie następujący tutorial:
http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-6
Nie rozumiem następującej rzeczy:
While we’re there, we’ve also changed the Genre and Artist to virtual properties. This allows Entity Framework to lazy-load them as necessary.
public virtual Genre Genre { get; set; }
public virtual Artist Artist { get; set; }
```
After having added these attributes to our Album model, our Create and Edit screen immediately begin validating fields and using the Display Names we’ve chosen (e.g. Album Art Url instead of AlbumArtUrl). Run the application and browse to /StoreManager/Create.
Nie rozumiem tego. Domyślam się, że chodzi o pewną formę przeciążenia słowa kluczowego virtual. Czy ktoś mógłby to wytłumaczyć?
Pozdrawiam,