Example #1
0
        private string CreateDeleteModel()
        {
            PostSourceEntity model = new PostSourceEntity()
            {
                NameSpace    = "JZ.Server",
                ClassName    = "TestServer",
                FunctionName = "DeleteByWhere",
                Parameters   = "1=1"
            };

            return(model.ToJson());
        }
Example #2
0
        private string CreateEditModel(JZ.Models.Test test)
        {
            PostSourceEntity model = new PostSourceEntity()
            {
                NameSpace    = "JZ.Server",
                ClassName    = "TestServer",
                FunctionName = "Update",
                Parameters   = test.ToJson()
            };

            return(model.ToJson());
        }
Example #3
0
        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());
        }