Meghana M

Meghana M

  • NA
  • 175
  • 24.4k

How to format the text in dbcontext class

May 12 2023 8:47 AM

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)