public static void RaiseOnValidating(IEntity record, EventArgs args) { if (record == null) { throw new ArgumentNullException("record"); } InstanceValidating?.Invoke(record, args); (record as Entity).OnValidating(args); }
internal static Task OnInstanceValidating(EventArgs args) => InstanceValidating.Raise(args);