Html – Blazor : calculate a value or leave as default
if I want to supply a calculated value to a component such as a grid or any parameter really, and if there is no value then I want to leave the value as it was since it is being automatically…
if I want to supply a calculated value to a component such as a grid or any parameter really, and if there is no value then I want to leave the value as it was since it is being automatically…
I have the following JSON in C# : string extractedText = " [ { "mainQuestion": "Question 5: Attempt Any 2 [5 x 2 = 10]", "question": "Write a C program to define a structure called student that contains the following…
I have developed a Windows Forms application using .NET 4.8, and it is functioning well with all the required components available in .NET 4.8. Now, I have a new requirement to enable internet-based communication between two computers. Specifically, I want…
I'm using Entity Framework with MongoDB. I have a class, Account with the following field: private readonly byte[] salt; Account is configured in Entity Framework like so: protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<Account>().ToCollection("accounts"); } When I save an…
I'm working on a reading in a JSON file in C# using the JsonSerializer.Deserialize<>(json) method from the System.Text.Json package. The JSON file contains the following node textClasses: "textClasses": { "callout": { "fontSize": 29, "fontFace": "Roboto Regular", "color": "#5158A7" }, "title":…
Given the interface and the class below public interface IFoo { string Name { get; set; } } public class Foo : IFoo { public string Name { get; set; } = "name"; public string Value { get; set; }…
I use nextjs 14. In the dashboard root of the layout file, which is a server component, I make a get request to the api developed with .net. The root of the problem is that the cookies set by .net…
I am trying to insert into the mysql database the following record in a Create() method in a Repository class: MySqlCommand command = new MySqlCommand("INSERT INTO `documentdetails` (?dtoDocumentId);", _connection); command.Connection = _connection; command.CommandType = CommandType.Text; command.Parameters.Add("?dtoDocumentId", MySqlDbType.Int64).Value=documentDetail.DocumentId; command.ExecuteNonQuery(); The documentId…
I'm facing an issue I'm not getting why and how to solve it. Can you help, or give me some hints to figure out what's wrong with my Dockerfile? code so far: # Official .NET SDK image to build and…
I have this container running on my localhost:5005 docker: It was created with: docker run --name mtg-redis -p 5005:6379 -d redis I have my .NET application running on localhost:5002 Docker Compose: version: '3.4' services: mtgmvc: image: ${DOCKER_REGISTRY-}mtgmvc build: context: .…