I have a component with a number of properties that have various attributes
Normally when these attributes are added to a plain old domain object they are picked up by my custom AttributeConventions.
For the Component properties they are not. Is there some extra wiring needed for these?
e.g.
public class Component
{
[Length(Max=50)]
public virtual string Name {get; set;}
}
public class MyClass
{
public virtual Component Component {get; set;}
[Length(Max=50)]
public virtual string Color {get; set;}
}
I get a table MyClass with columns Color & ComponentName
Color is an nvarchar(50) whilst ComponentName is an nvarchar(255) (the default)