不知道从哪里开始,我想写我返回到 json 的结果
当前代码:
public Setting TestSettings(Example _example, String type)
{
var results = _example.GetExample("Testing");
return results;
}
设定模型
string Description { get; set; }
Guid? Guid1 { get; set; }
Guid? Guid2 { get; set; }
string Key { get; set; }
string Value { get; set; }
获取示例
public Setting GetExample(string key)
{
using (var db = MyDataContext.StoredProcs)
{
return db.GetExample<Setting>(key, _curGuid1, _curGuid2, SettingExtensions.SettingFactory());
}
}