For those who are interested, this is how you would override the default T4 template.
public class MyTemplate : DomainModelTemplate {
public MyTemplate(Microsoft.VisualStudio.TextTemplating.TextTransformation textTransformation)
: base(textTransformation) {}
protected override void WriteEntityODataAttributes(EntityTypeWrapper entityType) {
WriteAttribute("IgnoreProperties(" + SafeQuote("EntityAspect") + ", " + SafeQuote("BaseString") + ")");
WriteAttribute("DataServiceKey(" + SafeQuote("CustomerID") + ")");
}
}
This is a very simplified example but it should give the general idea. A feature request has already been submitted to support a metadata buddy class which can be used to override the generated attribute.