Lets Have a fun with Technology.


Follow by Email

Thursday, July 15, 2010

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.


Post a Comment