Im trying to enforce the user to set a DateTime for StopPublish
[Required]
public virtual DateTime EnforceStopPublish
{ get; set; }
public override DateTime? StopPublish
{
get { return EnforceStopPublish; }
}
didn't work, is there another possible way, maybe by an Publishing event? example.
thanks in advance
Never tried it on the
StopPublishproperty (not sure about any side-effects), but could you do it with standard data annotations, i.e. aRequiredattribute on your overriding property?