Dictionary and Alias of Object Properties
Posted: Mon Sep 08, 2008 2:37 am
Hi,
I'm using an object as a datasource for the dictionary in my reportdesigner, using report.RegData(String Name, Object o). This works fine, however, I'd like to have some way to set a custom name for the properties on my object that are shown in the dictionary.
Say I have a property called CustomerId:
public String CustomerId { get; set; }
Is there anyway to define the Alias that should be shown in the dictionary directly on my entity object? Something along the lines of:
[SomeAttribute="Customer Identification"]
public String CustomerId { get; set; }
Thanks in advance.
I'm using an object as a datasource for the dictionary in my reportdesigner, using report.RegData(String Name, Object o). This works fine, however, I'd like to have some way to set a custom name for the properties on my object that are shown in the dictionary.
Say I have a property called CustomerId:
public String CustomerId { get; set; }
Is there anyway to define the Alias that should be shown in the dictionary directly on my entity object? Something along the lines of:
[SomeAttribute="Customer Identification"]
public String CustomerId { get; set; }
Thanks in advance.