I have database field like:
Id status paymentreceiveDate
1 paid 2020-07-07
I want update status expired after one year automatically, how can I achieve this in mvc.
Normally you would use a sql agent job. The job could call the website if you want the logic in mvc for some reason.
Hello bruce can you provide any example or links given to my context?
sql agent:
https://docs.microsoft.com/en-us/sql/ssms/agent/sql-server-agent?view=sql-server-ver15
Hi sandesh pokhrel,
You can execute a sql query once a day to check whether your paymentreceiveDate has expired, and if it expires, modify the status value.
Best Regards,
YihuiSun