Silverlight client using WCF RIA Services support for DataAnnotations

Stimulsoft Reports.Silverlight discussion
Locked
emtopping
Posts: 7
Joined: Tue Jun 28, 2011 5:14 pm
Location: Newcastle UK

Silverlight client using WCF RIA Services support for DataAnnotations

Post by emtopping »

Hi, just started evaluating this. V. impressed with the product. However, the tool appears not to look at DataAnnotations when used as a business object.

eg I have metadata defined:

// The MetadataTypeAttribute identifies CompanyMetadata as the class
// that carries additional metadata for the Company class.
[MetadataTypeAttribute(typeof(Company.CompanyMetadata))]
public partial class Company
{

// This class allows you to attach custom attributes to properties
// of the Company class.
//
internal sealed class CompanyMetadata
{

// Metadata classes are not meant to be instantiated.
private CompanyMetadata()
{
}


[Display(AutoGenerateField = false)]
public long CompanyID { get; set; }


[Display(Order = 2, Name = "Company Number")]
public string CustomerNumber { get; set; }

etc.

I'd like to have the report designer honour these. So in the above the CompanyID field would not be displayed and CompanyNumber would become Company Number

I guess you use reflection to get the objects so what's the chance of implementing?


Thanks, Martin
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Silverlight client using WCF RIA Services support for DataAnnotations

Post by Andrew »

Hello,

We have added this task into our to-do list. We will strat working on this issue after the official release.

Thank you.
emtopping
Posts: 7
Joined: Tue Jun 28, 2011 5:14 pm
Location: Newcastle UK

Silverlight client using WCF RIA Services support for DataAnnotations

Post by emtopping »

Thanks, Andrew Regarding the support issue re misisng .aspx .html pages for samples can't you just email me them? Thanks
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Silverlight client using WCF RIA Services support for DataAnnotations

Post by Andrew »

Hello,

Sorry it seems I do not understand your question.

Could you, please rephrase it.

Thank you.
Locked