Public IndexModel(IConfiguration configuration)Ĭon.ConnectionString = Configuration.GetConnectionString("OEM_US_SQL_CORL") Ĭom.CommandText = "SELECT * FROM ProActiveMonitoring_Missing_PVR_Orders WHERE isICMSent = 'No'" This is my namespace SQLICMAlertWebApp.Pages ![]() I am not sure about this approach but here is what I tried. Now I want to fetch this list in Index.cshtml. ![]() In my I am trying to establish connection to SQL Server and storing the rows in a list. I am trying to fetch some SQL data whenever user comes to the Index page in my ASP.NET Core application (using Razor Pages).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |