Category "c++sharp"

Maui RC1 - "System.NotSupportedException: Must call AddTerm AddSeparator in that order"

I installed the last update for Maui (https://github.com/dotnet/maui). When I add an image, it makes an error: "error MAUI0000: System.NotSupportedException: Mu

How do you initialize reference type class properties in a nullable context in Unity?

As you are supposed to use the Start() or Awake() methods instead of the class constructors in Unity to initialize your class properties, VisualStudio complains

Fetching data in level 3 of self-referencing / parent-child relationship

I am programming a multilevel menu / submenu in ASP.NET MVC. I have this table: Id Name ParentId ---------------------------------- 1

Mongodb aggregate group by then conditional sum, or, filter, push, using c#

Can someone please help to convert this query to C# .NET core? db.getCollection("accout").aggregate().match({ $or: [{"clientnum1": "xxxx"},{ "clientnum2": ""}],

Is there a way of comparing 2 variables in a grid like way instead of nested if statements?

I am dealing with a prisoners paradox type problem where there are multiple combinations (2x2 -> 4) and each has a different result. Is there a good way of l

EF Core: Union vs LinqKit for dynamic linq to SQL

I was always using the LinqKit to implement dynamic and cooperative predicates. However, the last time I saw a colleague use the Union to combine dynamic querie

How to group and Throttle Object by ID Rx

I have incoming objects of the same type, but if An Object property IsThrottlable is set to false regardless of the ID I DON'T want to throttle it but if IsThro

How to use DBContextFactory in Generic Repository

My current application has three layers: Web, Infrastructure and Core. Generic Repository is in Infrasturcture layer and works fine with DBContext. After I swit

How to access a specific cell in a DataGridViewRow?

How can I access a specific cell by index in a DataGridViewRow? Regular DataGridView has Rows parameter, DataGridViewRow doesn't have it var GridRow = new DataG

Insert data in a table from another model In .NET Core MVC

I'm trying to build a quiz application and i want to insert the user's answers after the quiz is submitted. this is my question model: public class Question {

Open type font collections are causing errors with PdfPrintingCore "Font has no usable platform or encoding ID. It cannot be used with PDFEdit."

When printing any text in font type Cambria (or another .ttc font type) on Windows I get the following error message: Font has no usable platform or encoding ID

Is there a way to build custom expression in SqlKata for the Select/Order clause

I wanted to pass custom expression to SqlKata The expected output is: SELECT DISTINCT(Column1 + ' ' + Column2) FROM Table1 ORDER BY Column1 + ' ' + Column2

Instantiating an object to the position of another vector, hoping to change Y-axis in the code

I have enemies spawn by instantiating them and having them follow a straight path along the X-axis. When instantiated, I want some variability in their height t

Dynamically generate lambda expression

I have the following class: public class Movie { public int MovieId { get; set; } public string Title { get; set; } } I want to create a lambda express

Kafaka Subscriber not receiving the messages

I am writing sample applications in .Net core to interact with Kafka. I have downloaded Kafka and Zookeeper official docker images to my machine. I am using Con

Use Excel File in C# Microsoft botframework SDK

How can I read local excel data on my C# bot using bot framework SDK. I can't find any documentation for it. Can anyone help?

Pdfium stretches or squashes document on printing

I'm using PdfiumViewer in one of my C# applications. This is the part of the code which I'm using for printing: public documentCopies = 2; // here for example's

How to change linerenderer color at runtime?

The default color now is mixed of colors with the default material : I want that at runtime or before running the game if i set the mode to None set the whole

Character is not able to move by using (A , S , D) in unity

Today I watched an video on how to make movement in youtube (https://www.youtube.com/watch?v=bzheMJQVtBI) but the movement occur only when I press W key or chan

Docker .NET Framework is triggering error Access to the path 'C:\RoslynCompilers-3.6.0\tools\csc.exe' is denied

I am trying to run a simple ASP.NET application in a Docker Container. Unfortunately, this application is a .NET Framework (not .NET Core), and because of that,