Ejemplo n.º 1
0
        private static string MakeFileName(FileType type)
        {
            switch (type)
            {
            case FileType.ServicesClass:
                return(NameHelper.MakeServicesClassName() + ".cs");

            case FileType.SupervisorModelClass:
                return(NameHelper.MakeSupervisorModelClassName() + ".cs");

            case FileType.ContextModelClass:
                return(NameHelper.MakeContextModelClassName() + ".cs");

            case FileType.ScaffoldedModelClass:
                return(NameHelper.MakeScaffoldedModelClassName() + ".cs");

            case FileType.ContextClass:
                return(NameHelper.MakeContextClassName() + ".cs");

            case FileType.ContextInterface:
                return(NameHelper.MakeContextInterfaceName() + ".cs");

            case FileType.SupervisorClass:
                return(NameHelper.MakeSupervisorClassName() + ".cs");

            case FileType.SupervisorInterface:
                return(NameHelper.MakeSupervisorInterfaceName() + ".cs");

            default:
                return(string.Empty + ".cs");
            }
        }