User-1233944992 posted
I created a dynamic data web site (tried using both options in vs, web site or web application), and at first everything works. but when i try to customize appearance (not display all columns and stuff like that) nothing happens.
Not sure what I'm missing: create a partial class that has the same name as the table (using Linq to sql, tried naming the class exactly like the table, and ading s on the end as thats what datacontext usually generates), create another metadata class, put
the attribute in the first class that references the metadata class, and then make public properties in the metadata class. What am I missing?
Thanx for help :)
...
using System.Web.DynamicData;
using System.ComponentModel.DataAnnotations;
[MetadataType(typeof(Metaclass_Metadata))]
public partial class TableName
{
}
public partial class Metaclass_Metadata
{
public object ID;
[UIHint("DisplayCaption")]
public object AnotherColumn;
}