Content
No forms appearing in custom template VS 2022 Mac or PC
I have been looking over the material for the new templating engine, https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template and https://github.com/dotnet/templating/tree/main, and have created a .template.json file…


How to bind asp-items to the model in a select element appended by js dynamically?
$("#List").append("<tr>" + "<td> <select name='dm' asp-items='"+Model.dmdata+"'>" + "</select></td>" …


Taking too much time to Load all files from the folder in ASP.NET Web page.
I am loading the files from the server folder in a web page. But, the head ache is, it's taking too much time to load all the files from the specific folder. Hardly it will be taking 30 to 45 mins to load all the files. End user can't wait till load all…
How to change the popup screen background color?
Background color i need to change to Black.... In the above example it is white i need to set to black I am using CommunityToolkit.Maui for popup


can not connect signalr in android 7
android 7 can not connect to signalr hub there is an error:
how to write nsi script for a windows application custom URL schema setup
I want to add a new registry for my Windows application while installing so for that I need to add the registry in the nsi script so can anyone suggest to me how to write that in nsi script, Thanks in advance.


Why can't Entity Framework handle cascade deletes on a maybe child
I don't know if this is a SQL Server issue or an Entity Framework issue. In addition, I am reticent to say "bug" as Microsoft tests so well, but this strikes me as a potential bug (or feature limitation). This is for a political campaign…


Why is Select().Contains() ok while Any() is not?
Hi all; I first tried the following code: var statesIndirectDelete = await States .Where(s => deletedCountries.Any(c => c.Id == s.CountryId)) .ToListAsync(); and that gave me the error: System.InvalidOperationException The LINQ expression…


How do I use a regular expression in Entity Framework?
For the method: public static IQueryable<ClaimIdentityUser> FindClaimsRegExAsync(this UserDbContext dbContext, string searchEmail, string searchClaimValue) { // if both search terms are empty, return all claims if…


Entity Framework - is AnyAsync() the most efficient approach? Or is Contains() better?
Hi all; My situation is I have 4 different model objects that each have a property: public string UniqueId { get; private set; } This UniqueId must be unique across all 4 tables (sort of a super unique key). First, I do set it to be unique in each model…


Delete a record with the primary key
Hi; Is there a way to delete a record by its primary key? Yes I know I can do the following: using (var context = new MyDbContext()) { var entity = context.MyEntity.Find(id); context.MyEntity.Remove(entity); context.SaveChanges(); } But I…


What is the best way to see what my EF requests turn into
Hi all; What is the best way to see clearly/quickly/easily what an EF query becomes. Both the SQL sent to the DB and any subsequent LINQ operations? At present I run in the debugger and stop on the line after the query. I then look at the log output and…


If we delete WitnessClientAdmin.log from the event logs, what activities are deleted?
Hello World, I've seen an event ID of 104 from the system, which states that The WitnessClientAdmin log was cleared. I've looked in other resources but haven't been able to find out more about it, therefore I'm curious as to what other actions or…
how to execute task in a certain time?
If I want to execute something in a certain time how to do it? except timer? If I want to update the queue at 09:56 how to do it?
How can I exclude transitive dependencies that are not needed in the project when publishing my application?
Hi there, I'm building my first real c#.net app using Windows Forms and I used ChatGPT a lot for this as I'm only using Visual Studio Code and have no good way to kickstart my project in any other way. This all worked fine and I came to a point where I…


Net maui runtime loading problem ?
I have created languageconverter as above binding from C# listing...Firstly binding values by Text="{DynamicResource Key=welcome}" like that.. it is working as expected but when loaded page with custom collectionview is not changing language…
HTTP-500 error when connecting from FrontDoor with AAD authentication on Blazor Server
I created a Blazor Server app that uses the AAD authentication, referring to the following URL. https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-blazor-server Then I deployed to AppService and this worked fine. After that, I…
Different dialog opening position behavior when starting application from Explorer vs. Command Line/VS/...
Hello, we have noticed a problematic difference in the automatic positioning of modal dialogs in our Windows application when using multiple monitors: When our application was started from cmd.exe, PowerShell or a different application (like Visual…


How to change the UI when the model's view property changes?
Hi all. Recently I started to study the mvvm pattern and ran into a problem. How to change the UI when the model's view property changes? There is a model public class Setting { public string AliasCertificate { get; set; } =…


How to check if the record exist with same value in the database before insert
Hi, In my Blazor Server application, I am inserting a list of data into a database as follows; public async Task AddStockAsync(List<GameBank> gameBank) { await _oyunPalasContext.GameBanks.AddRangeAsync(gameBank); await…

