I see where you can create attributes for the class / table in the settings, but I am needing to add custom attributes to each of the properties - mapping to the columns. I don't want them to be overwritten every time I regenerate the mapped model. Is there a way to define these using Entity Developer?
I am transitioning from Telerik ORM to Entity Framework in an Oracle environment. With Telerik, I believe the practice was to extend the partial class and include an internal sealed class with a duplicate version of all the properties where you could decorate with the DataAnnotation properties as well as custom ones.
Is this the same case with generating from Entity Developer to the DbSet template for EF?
Thanks,
Ben
Custom attributes per property / column
Re: Custom attributes per property / column
You should add custom attributes via interface of Entity Developer to preserve attributes during regeneration:
1) navigate to Model > Settings > Attributes > select the assembly with the needed attributes and make sure that the needed attributes are checked in the window below, press OK
2) select the needed attribute in the Attributes collection of a particular class property
1) navigate to Model > Settings > Attributes > select the assembly with the needed attributes and make sure that the needed attributes are checked in the window below, press OK
2) select the needed attribute in the Attributes collection of a particular class property