Is there any way to add custom attributes to properties in EF generated code? The only thing I can see as a plausible solution would be to come up with a custom T4 template
You can create interface and declare attribute on interface.
partial class Person : IPerson {} public interface IPerson { [Required] string Name { get; set; } }