2
Answers

How to format the text in dbcontext class

Meghana M

Meghana M

1y
540
1

ApplicationDBContext.cs

Below code is written in .net core  :Description value should display with bold & unbold text in application UI

modelBuilder.Entity<BoldValues>().HasData(new Boldvalues()
            {
                Id = 1,
                Description = "<b>C# Corner should display in Bold</b> ,C# Corner should display unbold"
              });

Answers (2)