Category "c++sharp"

Dynamic 365, get owner of a record with FetchXML / C#

How do I retrieve owner of a record (for example a task) with FetchXML or C#? I can connect the two tables task and owner with FetchXML : <fetch> <en

Generating Class in c# that inherits a generic class which uses type parameter using Telosys code generation tool

I have a need to generate C# code for my Country entity that will inherit from a base Entity class providing stong typed argument to denote the fact that my PK

OnNotifyPropertyChanged only triggers on the firts obj of the List

I have a ParentObj" Country " which has a List child Obj "Cities". I coded a OnNotifyPropertyChanged in the child object that notifies the Parent about its ch

Difference between @bind and @bind-value

What is the difference of using @bind and @bind-value? I made this simple example, and testing it in the browser, I didn't see any difference. <p>@@bind

Combine two data tables with null values on both tables - C#

I have two data tables as shown below. datatable1: table1_id(PK) DriverID Vehicle 111 Ram00 VRN01 112 Shyam00 V

How do I allow restricted characters in the URL of a .net core application?

Previously, to allow for encoded special characters to be passed as part of a URL in a .net framework service, I've added this to the web.config file within the

Visual Studio 2022 - Where is the RouterConfig.cs and Global.asax in MVC project?

I am new to Visual Studio and ASP.NET and I am watching a tutorial by Mosh Hamedani on MVC development. The tutorial is a couple of years old, but when he crea

How to validate Date Start and Finish Overlap from a list of items

What I have A list of objects with Id, DateStart and DateFinish. [ { Id: 1234567890, DateStart: new DateTime(), DateFinish: new Date

Using C#, .NET Core 3 and GTK# for cross-platform Programming (and alternatives)

I am about to start development of a software project that should run on Linux and Windows if possible. As I already have some experience with C# I am eager to

Formatting DateTime in ASP.NET Core 3.0 using System.Text.Json

I am migrating a web API from .NET Core 2.2 to 3.0 and want to use the new System.Text.Json. When using Newtonsoft I was able to format DateTime using the code

Global route for all ApiControllers in .Net 6

In all of my projects i put this code in top my controllers : [Route("api/[controller]/[action]")] [ApiController] public class ValuesController : ControllerBas

Could not load type 'Firebase.Database.FirebaseObject`1' from assembly 'Firebase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Building a MVC with firebase but prompt this error during runtime.Anyone knows how to solve this?

What does this error mean, and how do I rectify it?

system.overflow exception: value too small or too large I'm busy with a loan calculator app. In the code below, I'm trying to calculate the loan payment (paymen

How to ignore empty rows in CSV when reading

Trying to read a CSV file that has empty rows (usually at the end) using CsvHelper.GetRecords<T>(). Without the empty rows this works a treat. However i

Xamarin.Forms Android Write in External Storage SOLVED

I am a very beginner with C#, and I definitely need your help. I am trying to create/Open/Write a .txt file in the External Storage, but I can not set the path

How to ignore empty rows in CSV when reading

Trying to read a CSV file that has empty rows (usually at the end) using CsvHelper.GetRecords<T>(). Without the empty rows this works a treat. However i

What is the difference between services.AddAuthentication() and services.AddAuthorization() in asp net core?

I have the following code and i want to understand what is the difference between those two extension methods. What each one do? services.AddAuthentication (Jw

How to convert SqlDataReader result to generic list List<T>

I'm trying to fetch records form Azure database using Ado.net I used SqlDataReader class for that. Even though the data fetch is successful, I don't know how to

Problem with Microsoft.CodeAnalysis on Visual Studio 2019 16.11.6 AFTER install Visual Studio 2022

I am receiving on Visual Studio 2019 16.11.6 these suspicious warnings (Version=42.42.42.42) AFTER install Visual Studio 2022. Any idea? Warning CS8032 An insta

Capture image from Honeywell Imaging Scanner

I am using a Honeywell Xenon Imaging scanner to capture both images and barcode. I have the barcodes working but am stuck trying to read an image. Using Microso