I´m using Entity Framework to pull data from a MySQL database. I know I can get the last time a given table has been updated. How can I do this using EF?
Asked
Active
Viewed 39 times
0
-
How do you do it in MySQL? – JotaBe Aug 22 '14 at 12:21
-
http://stackoverflow.com/questions/307438/how-can-i-tell-when-a-mysql-table-was-last-updated – ferroariel Aug 22 '14 at 19:19
1 Answers
1
You can use Database.SqlQuery Method (String, Object[]) to run the query that returns the desired data.
The TElement
parameter type must be
- either a single type (like string) if the query returns a single value (1 row, 1 column)
- a class that has column which the same names of the columns returned by the query (if the query returns several columns) You'd have to create this class yourself, if this is the case.

JotaBe
- 38,030
- 8
- 98
- 117