I have many Azure classes containing date fields and modified by tracking. Fields such as:
[DisplayName("Created By")] public string CreatedBy { get; set; } [DisplayName("Modified By")] public string ModifiedBy { get; set; }
I want to avoid repetition, so I was thinking about creating a class that would contain them, for example:
public class TableServiceEntityRowInfo : TableServiceEntity { [DisplayName("Created By")] public string CreatedBy { get; set; } [DisplayName("Modified By")] public string ModifiedBy { get; set; } }
For my data classes, instead of inheriting from TableServiceEntity, I would like to set them as follows:
public class MyClass : TableServiceEntityRowInfo { }
Is this the right and reasonable way to add additional information to the fields. The reason I ask here is because I plan to do this for many classes, and I want me to do the right thing.
Samantha JT Star
source share