close

https://docs.microsoft.com/zh-tw/sql/relational-databases/json/json-data-sql-server?view=sql-server-2017

=Json=

this.data = [
{
KEY_NO: 1, QUESTIONS: '課程安排', SELECT_KEY: 10,
options: [
{ title: '非常滿意', checked: false },
{ title: '滿意', checked: false },
{ title: '普通', checked: false },
{ title: '差', checked: false }]
, MEMO: ''
},
{
KEY_NO: 2, QUESTIONS: '課程地點', SELECT_KEY: 20,
options: [
{ title: '非常滿意', checked: false },
{ title: '滿意', checked: false },
{ title: '普通', checked: false },
{ title: '差', checked: false }]
, MEMO: ''
},
{
KEY_NO: 3, QUESTIONS: '課程時間', SELECT_KEY: 30,
options: [
{ title: '非常滿意', checked: false },
{ title: '滿意', checked: false },
{ title: '普通', checked: false },
{ title: '差', checked: false }]
, MEMO: ''
}
];
}

 

=C#=

public class QuizModel
{
public decimal KEY_NO { get; set; } //
public string QUESTIONS { get; set; } //

public decimal SELECT_KEY { get; set; } //

public List<option> options { get; set; }

public string MEMO { get; set; } //
}

public class option
{
public Boolean values { get; set; } //
public string title { get; set; }
}

arrow
arrow
    全站熱搜
    創作者介紹

    Chill_Radio 發表在 痞客邦 留言(0) 人氣()