public JsonResult GenerateCode(string tableName, string fieldName, string prefix) { result = new Result(); sqlFactory = new SQLFactory(); result.message = sqlFactory.ExecuteSP_GnCode(DateTime.Now.Date, tableName, fieldName, prefix); return(Json(result)); }
/// <summary> /// QueryBuilder Constructor /// </summary> /// <param name="factory">A factory class that creates the components of a SQL statement</param> public StandardQueryBuilder(ISQLFactory factory) : base(factory) { }
/// <summary> /// QueryBuilderConstructor /// </summary> /// <param name="factory">A factory class that creates the components of a SQL statement</param> public QueryBuilder(ISQLFactory factory) { this.select = factory.CreateSelect(); this.from = factory.CreateFrom(); this.whereClauses = factory.CreateRestrictions(); }