예제 #1
0
        public static string ToAttribute(this ProfileEnum value)
        {
            switch (value)
            {
            case ProfileEnum.USER_PROFILE_PATH:
                return("profilePath");

            case ProfileEnum.LOGON_SCRIPT:
                return("scriptPath");

            case ProfileEnum.HOME_FOLDER_LOCAL_PATH:
                return("homeDirectory");

            case ProfileEnum.HOME_FOLDER_CONNECT_DRIVE:
                return("homeDrive");

            case ProfileEnum.HOME_FOLDER_CONNECT_TO:
                return("homeDirectory");

            default:
                throw new ArgumentException($"Invalid Enum:{value.ToString()}");
            }
        }
예제 #2
0
 //For Seed
 private Profile(ProfileEnum @enum)
 {
     Id          = (int)@enum;
     Description = @enum.ToString();
 }