I am doing some validation in the OnChanging event of Linq-to-sql model partila class and want to fire an error into my model. is this possible?
event code
> partial void OnCommissionStartChanging(System.DateTime value)
> {
> if (this.CommissionStart > this.CommissionEnd)
> {
> //add error to model or throw exception to model
> return;
> }
>
> this.CommissionStart = value;
>
> }