Hi,
We are using Devforce 2010 with VS 2010.
We want to change the display attribute for the properties in our entity classes and later we will use the required attribute and regularexpression attribute.
We have tried this, but it has no affect, when we view the data in a DataForm:
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using IdeaBlade.Core.ComponentModel.DataAnnotations;
namespace DomainModel{
[MetadataType(typeof(MetadataEntCustomer))]
public partial class EntCustomer
{
public static class MetadataEntCustomer
{
[ReadOnly(true)]
[Display(Name="Customer ID")]
public static int p_customerID;
}
}
}
I see that it is also possible to change this properties in the .edmx file.
What is the right way to change this properties?
Edited by danjal - 30-Sep-2010 at 8:53am