我在网页中使用了ext grid面板。我想从gridpanel商店反序列化我的模型字段。但这不起作用。反序列化后,模型已创建,但字段为空。
我的模特:
public class GenKullanici : BaseEntity
{
public Int32? Kod { get; set; }
public string KullaniciKod { get; set; }
public string PersonelKod { get; set; }
public string Adi { get; set; }
public string Soyadi { get; set; }
public string AktifEH { get; set; }
public DateTime? KayitTarihi { get; set; }
public string BelediyeKod { get; set; }
public DBActionType ActionType { get; set; }
public int TotalCount { get; set; }
public string BelediyeAck { get; set; }
}
我的json数据:
[{"Kod":"3","KullaniciKod":"DENEME","PersonelKod":null,"Adi":"DENEME ADI","Soyadi":"DENEME SOYAD","AktifEH":"H","KayitTarihi":"2014-07-21T17:43:35","BelediyeKod":"3313","BelediyeAck":"Tarsus Belediyesi","ID":"ext-32-2","ActionType":2,"FieldList":"Kod|AktifEH|PersonelKod|"}]
我试试:
list = JSON.Deserialize<List<EntitySpace.User.GenKullanici>>(data);
结果: