Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var timer = new Timer();
- timer.Tick += (sender, e) =>
- {
- // call your database code here
- };
- timer.Interval = 5000; // this value is in milliseconds
- timer.Start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement