I have the following BaseEntity
public class BaseEntity
{
public BaseEntity()
{
DateCreated = DateTime.UtcNow;
DateModified = DateTime.UtcNow;
}
public DateTime DateCreated { get; set; }
public DateTime DateModified { get; set; }
[MaxLength(36)]
public string CreateUserId { get; set; }
[MaxLength(36)]
public string ModifyUserId { get; set; }
}
All my other entities derive from it. Now I'd like to use fluent configuration instead of the DataAnnotations. Do I really have to configure the MaxLength of the two string properties in every single DbModelBuilder configuration?