private string CreateDeleteModel() { PostSourceEntity model = new PostSourceEntity() { NameSpace = "JZ.Server", ClassName = "TestServer", FunctionName = "DeleteByWhere", Parameters = "1=1" }; return(model.ToJson()); }
private string CreateEditModel(JZ.Models.Test test) { PostSourceEntity model = new PostSourceEntity() { NameSpace = "JZ.Server", ClassName = "TestServer", FunctionName = "Update", Parameters = test.ToJson() }; return(model.ToJson()); }
private string CreateAddModel() { JZ.Models.Test test = new Models.Test() { Value = Guid.NewGuid().ToString() }; PostSourceEntity model = new PostSourceEntity() { NameSpace = "JZ.Server", ClassName = "TestServer", FunctionName = "Insert", Parameters = test.ToJson() }; return(model.ToJson()); }