'宣言
Overloads Function GetTableData( _ ByVal tableName As String, _ ByVal primaryKey As ColumnValuePair _ ) As Dictionary(Of String,Object)
Dictionary<string,object> GetTableData( string tableName, ColumnValuePair primaryKey )
public class SampleApi : ForguncyApi { [Post] public void GetDataSample() { StreamReader reader = new StreamReader(this.Context.Request.Body); string message = reader.ReadToEnd(); var valuePair = JsonConvert.DeserializeObject<ColumnValuePair>(message); using (var responseWriter = new StreamWriter(this.Context.Response.Body, Encoding.UTF8)) { responseWriter.Write(JsonConvert.SerializeObject(this.DataAccess.GetTableData("SampleTable1", valuePair), Formatting.Indented)); } } }