skip to Main Content

Json – How to iterate through nested array in C#?

I have a console C# app and i use Google Sheets API to get data from spreadsheet. API returns me the following: {"majorDimension":"ROWS","range":"Sheet1!A2:H1000","values":[["Test1","20/07/2023","21/07/2023"],["Test2","10/08/2023","12/08/2023"]],"ETag":null} These "values" are actually the values from the cells, and I need to loop through those values…

VIEW QUESTION

Can Asp.net create a unique database for each session?

I need a live demo for a product. Said product uses ASP.NET with Entity Framework. Currently I create a new in-memory database like this: var sqliteConnection = new SqliteConnection("DataSource=:memory:"); sqliteConnection.Open(); builder.Services .AddDbContextFactory<DatabaseContext> (options => options.UseSqlite(sqliteConnection, o => o.UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery))); However, I…

VIEW QUESTION
Back To Top
Search