Hello, I have a system with 3 layers and I am using LINQ-to-SQL to persist.
I want to validate if the description field of my object is empty. I am using partial classes and the method OnValidate()
. If the field is empty, it throws an exception.
Is this correct?
What do I do after the exception to not close the form, letting the user continue working?
Thank you very much
Sorry for my poor english