Example #1
0
        public JsonResult GenScript(CreateTableViewModel model)
        {
            CreateTableGenerator generator = new CreateTableGenerator(model);

            return(new JsonResult {
                Data = generator.Generate()
            });
        }
Example #2
0
        public ActionResult LoadDB(CreateTableViewModel model)
        {
            if (string.IsNullOrEmpty(model.TableName))
            {
                return(this.RedirectToAction("Index"));
            }

            CreateTableGenerator generator = new CreateTableGenerator(model);

            model = generator.LoadDB();
            return(this.View("Index", model));
        }