Register properties without magic strings

Topics: Feature requests
Nov 2, 2012 at 8:32 AM

Hello,

I would like to create PropertyData instances without the need of specifying the related property by a magic string.
Instead a lambda expression would be more refactoring friendly.

Consider these two variants:

current

public static readonly PropertyData
       ShopProperty = RegisterProperty("Shop", typeof(IShop));

using lambda expression

public static readonly PropertyData
       ShopProperty = RegisterProperty(x => x.Shop, typeof(IShop));

Csla.net does it this way and I find it very comfortable.

Alex.

Coordinator
Nov 2, 2012 at 3:18 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Nov 2, 2012 at 3:19 PM

I put it on the backlog. It doesn't have a high priority for us at the moment.