예제 #1
0
        /// <summary>
        /// Renders the template.
        /// </summary>
        /// <param name="table">The table.</param>
        /// <param name="settings">The settings.</param>
        /// <returns></returns>
        public override string RenderTemplate(DatabaseTable table, CodeGenSettings settings)
        {
            IGenerateMethods generateMethods = new DynamicDbParametersResources();

            if (!settings.UseDynamicParameters)
            {
                generateMethods = new StaticDbParametersResources();
            }

            return(generateMethods.Render(table, settings));
        }
        /// <summary>
        /// Renders the template.
        /// </summary>
        /// <param name="table">The table.</param>
        /// <param name="settings">The settings.</param>
        /// <returns></returns>
        public override string RenderTemplate(DatabaseTable table, CodeGenSettings settings)
        {
            IGenerateMethods generateMethods = new DynamicDbParametersResources();

            if(!settings.UseDynamicParameters)
            {
                generateMethods = new StaticDbParametersResources();
            }

            return generateMethods.Render(table, settings);
        }