Exemple #1
0
        /// <summary>
        /// Returns an data object code string representation of the provided <see cref="Smo.TableViewBase"/>.
        /// </summary>
        /// <returns>A data object code string.</returns>
        public string GetDataObjectCode(Smo.TableViewBase tableView)
        {
            var languageProvider   = GetLanguageProvider();
            var dataObjectTemplate = GetDataObjectTemplate();

            return(CodeService.GetDataObjectCode(tableView, languageProvider, dataObjectTemplate));
        }
Exemple #2
0
        /// <summary>
        /// Returns an entity code string representation of the provided <see cref="Smo.TableViewBase"/>.
        /// </summary>
        /// <returns>An entity code string.</returns>
        public string GetEntityCode(Smo.TableViewBase tableView)
        {
            var languageProvider = GetLanguageProvider();
            var entityTemplate   = GetEntityTemplate();

            return(CodeService.GenerateEntityCode(tableView, languageProvider, entityTemplate));
        }