Category "c++sharp"

Non-nullable property must contain a non-null value when exiting constructor. Consider declaring the property as nullable

I have a simple class like this. public class Greeting { public string From { get; set; } public string To { get; set; } public string Message { ge

Non-nullable property must contain a non-null value when exiting constructor. Consider declaring the property as nullable

I have a simple class like this. public class Greeting { public string From { get; set; } public string To { get; set; } public string Message { ge

How to seed in Entity Framework Core 3.0?

I am trying seed the database with some data, using ASP.NET CORE 3.0 and EF Core. I've created my DbContext and according to documentation, online sources, or

Error 'Invalid hostname for this tenancy' on using graph api of sharepoint to subscribe event notification

I am new to sharepoint and now I am trying to create a webhook for my sharepoint sites, such that on any crud operation i would get notification in my app I ha

Creating dropdowns according to the database

There are different properties for 3 (x,y,z) properties in my database. I created a dropdown and according to the selection I will make in the dropdown, I want

How to work with gas days in a C# project?

A gas day is defined as a time range of 24 hours which starts at 5:00 UTC and ends at 5:00 UTC of the following day during the European standard time. During th

How to refresh web page after database update in ASP.NET CORE with Blazor

I'm making a small room booking web app and I would like to have the web page refresh on a given interval; ie a given minute or when a change has been done to t

save data and open in another class

I've got a litlle problem: How do I get stored data from one model into another? I've got an app which is loading strings from a textbox and I want to save them

WPF Canvas: Rotate a grouped shape

In my WPF application, I am trying to rotate a set of grouped shapes inside a canvas. I am getting grouped shape object TOP/LEFT position using the formulae men

How to improve unity management on android? unity2D

please tell me how to make the player control was not tied to the finger, but for example to drive in any part of the screen and the player will move from the p

Xamarin: How to delete files using CrossFilePicker Xamarin Forms

I am using the following code to pick a file using CrossFilePicker in Xamarin forms. Goal is to delete the selected file in Xamarin.Android project, file still

WPF Canvas: Rotate a grouped shape

In my WPF application, I am trying to rotate a set of grouped shapes inside a canvas. I am getting grouped shape object TOP/LEFT position using the formulae men

Remove all non-essential json formatting in C#

Let's say I have some convoluted json like so: { "ref": "some", "repository": { "id": 123456789, "name": "foo bar" } } I'm trying to get it into

Connect Blazor WASM app to Azure Key Vault

I am asking for your help because i have some trouble with the connection of my app to Azure key vault (title of the subject). The architecture of my project lo

read onedrive api errors

I am current using the following to try and create an upload session with the onedrive api HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); requ

Connect Blazor WASM app to Azure Key Vault

I am asking for your help because i have some trouble with the connection of my app to Azure key vault (title of the subject). The architecture of my project lo

How to call a callback function on a GUI event? Delegates?

I'm very new to C# and I'm wondering if using delegates is the right way here: I created a UserControl in Visual Studio Windows Forms Designer. In a TableLayout

Datagridview Error After Rowfilter -> Data Update/Add and Fill Process

I have a datagridview which filled by SQL table. When I search a value with a textbox in the data and update/insert the some values and use fill function again

Remove all non-essential json formatting in C#

Let's say I have some convoluted json like so: { "ref": "some", "repository": { "id": 123456789, "name": "foo bar" } } I'm trying to get it into

Deadlock on Select from table-valued parameter

I have this piece of code which acquires connection from EF Core DB context and executes select on the received data. var conn = _dbContext.Database.GetDbConnec