Meghana M

Meghana M

  • 1.6k
  • 175
  • 23.7k

How to save array of value in json format to database using C#

Sep 15 2023 3:55 PM

Json format from angular 

books:"tables",

Color:[

Color:red,

Color:white

]

DataModel.cs

public string Books{get;set;}

Public string Colors{get;set;}

How to store in  database table  like separated by commas in same row of column using C# code

output:Colors    

          Red,White


Answers (2)