|
@ -42,9 +42,11 @@ namespace ICSSoft.DataProject |
|
|
|
|
|
|
|
|
DataTable table = DBHelper.SQlReturnData(sql, cmd); |
|
|
DataTable table = DBHelper.SQlReturnData(sql, cmd); |
|
|
string json = JsonConvert.SerializeObject(table); |
|
|
string json = JsonConvert.SerializeObject(table); |
|
|
LanguageModel model = JsonConvert.DeserializeObject<LanguageModel>(json); |
|
|
|
|
|
|
|
|
List<LanguageModel> modelList = JsonConvert.DeserializeObject<List<LanguageModel>>(json); |
|
|
|
|
|
// LanguageModel model = JsonConvert.DeserializeObject<LanguageModel>(json);
|
|
|
cmd.Transaction.Commit(); |
|
|
cmd.Transaction.Commit(); |
|
|
return model.DefineCode; |
|
|
|
|
|
|
|
|
return modelList[0].DefineCode; |
|
|
|
|
|
// return model.DefineCode;
|
|
|
} |
|
|
} |
|
|
catch(Exception ex) |
|
|
catch(Exception ex) |
|
|
{ |
|
|
{ |
|
|