dsuryd / dotNetify

Simple, lightweight, yet powerful way to build real-time web apps.
https://dotnetify.net
Other
1.17k stars 164 forks source link

[enhancement] _itemKey to Attribute #205

Closed TheTrigger closed 4 years ago

TheTrigger commented 5 years ago

Hi, would be possible to replace the _itemKey properties with an Attribute?

Example:

//public string AllMarkers_itemKey => nameof(Marker.Id);
[ItemKey(nameof(Marker.Id))]
public IEnumerable<Marker> AllMarkers => _context.Markers:

It would improve readability. Thanks