Here Mudassar Khan has explained with an example, how to use a DataSet or DataTable as Model in Razor Page in ASP.Net Core Razor Pages.
Though it is not a good practice to use to use DataSet or DataTable as Model in Razor Page in Core architecture, thus user’s please make a note that this is just an informative article and does not recommend to use DataSet or DataTable as Model in ASP.Net Core Razor Pages.