Page 1 of 1

Silverlight client using WCF RIA Services support for DataAnnotations

Posted: Tue Jun 28, 2011 5:19 pm
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

Silverlight client using WCF RIA Services support for DataAnnotations

Posted: Thu Jun 30, 2011 12:01 am
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.

Silverlight client using WCF RIA Services support for DataAnnotations

Posted: Thu Jun 30, 2011 3:59 am
by emtopping
Thanks, Andrew Regarding the support issue re misisng .aspx .html pages for samples can't you just email me them? Thanks

Silverlight client using WCF RIA Services support for DataAnnotations

Posted: Fri Jul 01, 2011 12:53 am
by Andrew
Hello,

Sorry it seems I do not understand your question.

Could you, please rephrase it.

Thank you.