Exemple #1
0
        public static DatabaseObjectType GetDbObjectTypeByFolderName(string folderName)
        {
            string             value = ManagerUtil.GetSingularString(folderName);
            DatabaseObjectType type  = DatabaseObjectType.None;

            Enum.TryParse(value, out type);

            return(type);
        }
Exemple #2
0
        public static DatabaseObjectType GetDbObjectTypeByFolderName(string folderName)
        {
            if (folderName == DbObjectTreeFolderType.Types.ToString())
            {
                return(DatabaseObjectType.UserDefinedType);
            }

            string             value = ManagerUtil.GetSingularString(folderName);
            DatabaseObjectType type  = DatabaseObjectType.None;

            Enum.TryParse(value, out type);

            return(type);
        }