LINQ to SQL :- Importent Method OnValidate

LINQ to SQL :- Importent Method OnValidate

OnValidate is good method in linq to sql technology.


This Method allow to Do validation or set default entry which you want to do before Insert,Update or Delete.

Example of Such uses are :-

1.) Set Default Value While performing DML operation.

2.) If you want to Check Duplication Inserting then u can perform it here.

3.) While keeping autodelte,autoinserting,autoupdating u can perform any operation which required before insert,update or delete.

Posted in |

0 comments:

Post a Comment