What data retrieval method is good if I don't know schema of database?
-
07-02-2021 - |
質問
I am retrieving all tables, and make sql. But I want something that can handle Take, Skip. Differences between databases.
解決
Skip/take/similar are mapper functions... If you don't know the schema you can't have a model to map to, really. Ultimately, then, I suspect you're looking at more general tools like SQL and DataTable (storing data from an unknown schema is one of the very few uses I have for DataTable). This won't have skip/take, but most databases have a SQL way of doing that (for example, row-number in SQL server).
所属していません StackOverflow