Click here to Skip to main content
12,633,079 members (34,011 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET SQL-Server MVC , +

In my project, i want to implement a mechanism for time bound records. For example, lets say the customer creates a transactions with:
TransactionID, From, To, etc, CreationDate

And i want to delete these records, 5 days after creation date.

It would be great to get some ideas to use in production for this.
I am using Entity Framework, Code-First model. I want to know how to proceed about this issue. Does it have to be a Scheduled Job in SSMS? or is there a better way to handle these situations in code?

Any ideas are appreciated.

Thank you.
Posted 29-Jun-12 4:22am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I would go for a scheduled job (Create a Job[^]) for ease of use and maintainability.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161208.2 | Last Updated 29 Jun 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100