Category "c++sharp"

.NetCore 3.1 Linq to SQL : List within query

Earlier .NetCore versions allowed several client evaluation strategies, but starting in .NetCore 3.1 stricter rules require updates of badly written queries. Co

It keeps displaying the last data

I'm trying to let user to change the phone number of specific company user entered and displays the new information to user Currently, when I click the change b

AWS PinPoint Send Voice C#

I am trying to develop a Voice Notification using C# (.NET) using AWS PinPoint. AWS Provides the code template for this project for JAVA however I have not seen

How to create a Logger in .NET 6 Program.cs

I have a Data.Migrations project, which will run any Entity Framework Migrations to update the database model. Recently I have updated this project to .NET 6 an

Recursion for finding the smallest sum of numbers in an array

I have a problem. I need to sum up the arrays values to get the lowest possible sum. Rules: You go to next step and take the value (step 1->2) You skip 2 and

How to map fetched API data into JSON object for looping

I have the following working code that fetches a JSON data from Azure API: @code { string responseBody; protected override async Task OnInitializedAsync() {

Problem httpClient.GetStringAsync(URI) load

I have a problem of load with this method. In fact, I want to load a webpage to get the Html code. But the webpage doesn't have the time to load completely. So

Convert switch statement to switch expression

I converted a switch statement into an expression and expected value to have the same type. However the expression returns decimal type instead of int. using Sy

How to connect to MySQL server using Entity Framework Core

I am using Visual Studio 2019 community edition. I want to connect to MySQL using Entity Framework core. I do not want to use Entity Framework 6. I am running i

Map Is Zooming (Zoom In/Out) Automatically when i changed Latitude and Longitude To View different location (Please Go through the below Description)

I am using Gmap nuget package to load the map in my project. i have loaded the map, after that i want to draw the circle around the selected Lat Long. i drawn t

Returning ID from not yet created linked table index

I'm currently working on the database integration of my internship project using EntityFrameworkCore.Jet version 3.11. I cant upgrade because I'm using an MS Ac

C# How to get exact error message from Logic App triggered by HttpRequest instead of default error message?

I have a simple console application and it calls a Logic App by HttpRequest. When the Logic App fails at any step I want to get exact the error message saying w

Delayed function calls

Is there a nice simple method of delaying a function call whilst letting the thread continue executing? e.g. public void foo() { // Do stuff! // Dela

Google Refresh Token throws Expire Error in Azure

UserCredential credential; using (var stream = new FileStream("client_secrets.json", FileMode.Open, FileAccess.Read)) { credential = await

Code Cleanup in Visual Studio 2022 For One Solution Only

I have some separated solutions in my hard disk. And I have configured my Visual Studio 2022 like this: But one of them (the oldest one) does not follow the co

Detect any USB device activity using C#

How to detect usb activity using C#? I want to use it to trigger a function. In my case the device was detected as USB composite device.

Is there any sollution or code to find wsdl all methods and which type this methods GET or POST etc

I have a wsdl : https://www.lb.lt/webservices/ExchangeRates/ExchangeRates.asmx?WSDL I want to extract all methods and defined types of methods GET,POST etc. Is

MetadataType not working to merge metadata having followed Microsoft tutorial for data first approach

I have tried to simplify this problem as much as possible and cannot find a solution or fix. I have followed the second approach ("Add metadata class") in this

Launchingthe Calendar application (.EXE) from C#?

How can I lunch the build-in calendar app using c#, I can't find the process name and the PID(process ID)

Add a "i" variable to a variable name C# [duplicate]

I have a cube1, cube2, cube3 etc... variables and i want to use something like that: for (int i = 1; i < 100; i++) { Location "cube + i