I recently came across AddPooledDbContextFactory concept as part of my NET 5 self-education piece and am keen to implement it properly. However, I am not sure h
I want to setup Lazy Loading of registered types in a generic way that does not require me to register each one individually. I can create an extension method t
I have a Rest API written in .Net core that accepts a File as input as Multipart/Form-data. The API works absolutely fine when I run it from Swagger/Postman. He
I have a class: public abstract class InvestorAccount { public bool IsRegistered => ...; } And a subclass: public class PrivateInvestorAccount : Investo
I'm creating a .NET MAUI application using the current preview 11. When I tried to implement Push notifications I added the Xamarin.Firebase.Messaging package a
An example will be something like: User clicks a button on a webpage I created with ASP.NET. My app calls an API hosted on a third party server. The user sees
For UI, I am using Extjs, for server side, C#. My problem is i have a appsettings.json property under HubSettings, LiveStream is the property and it has Url, an
So I was trying to follow the Microsoft Docs, Options pattern in ASP.NET Core however for the life of me I can't seem to correctly get the "AppSettings" section
I've developed a Worker Service in .NET (.NET 5) which runs successfully. I'm then publishing the application using the following publish command. dotnet publi
Suppose I have two files in my current working directory: // file1.cs Console.WriteLine("file1"); //file 2.cs Console.WriteLine("file2"); In powershell, I do
I created a new project from the ASP.NET Core Web API template in Visual Studio, and attempted to add a new controller, but I get a 404 response with this messa
I am using .NET 6. Every time I scaffold Identity, the application stops working. My Startup class is like this: using BulkBook.Data.Data; using BulkBook.Data.R
Is it possible to create a list or array of pointers in C#? I want to have a list of T* rather than use IntPtr because i am forever having to type Marshal Ptr T
I have a soql query: SELECT Amount, Id, Name, (SELECT Quantity, ListPrice, PriceBookEntry.UnitPrice, PricebookEntry.Name, PricebookEntry.product2.Family FROM
I have a bug in my code. FindChild<T>() is searching a Element which is named "PasswordTextBox" but because "PasswordTextBox" is in the DataTemplate there
I'm trying to build an app like StrokePlus using bitmap to be able to check between two images if they're the same visually. The user can draw on the whole scre
I have an IDbConnection to a SQL server and two stored procedures I would like to start from a console app using the Execute method on the open connection. When
I got EF tracking turned off by default on my project. I got a DB model class UserModel: public class UserModel : BaseAdminDbModel { [Key] p
This is the code that I am using to mount the ISO // With help of WMICodeCreator ManagementObject mo = new ManagementObject("root\\Microsoft\\Windows\\Storage",
I have a code that allows to position an object onto the other object by Raycast. Obviously, I am using Mesh Collider so everything works fine. Ray ray = new Ra