Ejemplo n.º 1
0
        private ExplorerIcon GetExplorerIcon(DbObjectKind objectKind)
        {
            switch (objectKind)
            {
            case DbObjectKind.Table:
                return(ExplorerIcon.Table);

            case DbObjectKind.View:
                return(ExplorerIcon.View);

            case DbObjectKind.StoredProc:
                return(ExplorerIcon.StoredProc);

            case DbObjectKind.ScalarFunction:
                return(ExplorerIcon.ScalarFunction);

            case DbObjectKind.TableFunction:
                return(ExplorerIcon.TableFunction);
            }
            return(ExplorerIcon.Table);
        }
Ejemplo n.º 2
0
        private ExplorerIcon GetExplorerIcon(DbObjectKind objectKind)
        {
            switch (objectKind)
            {
                case DbObjectKind.Table:
                    return ExplorerIcon.Table;

                case DbObjectKind.View:
                    return ExplorerIcon.View;

                case DbObjectKind.StoredProc:
                    return ExplorerIcon.StoredProc;

                case DbObjectKind.ScalarFunction:
                    return ExplorerIcon.ScalarFunction;

                case DbObjectKind.TableFunction:
                    return ExplorerIcon.TableFunction;
            }
            return ExplorerIcon.Table;
        }