Exemple #1
0
        private static void _parse_confidentiality_levels(ref IDataReader reader, ref List <ConfidentialityLevel> lstLevels)
        {
            while (reader.Read())
            {
                try
                {
                    ConfidentialityLevel confLevel = new ConfidentialityLevel();

                    if (!string.IsNullOrEmpty(reader["ID"].ToString()))
                    {
                        confLevel.ID = (Guid)reader["ID"];
                    }
                    if (!string.IsNullOrEmpty(reader["LevelID"].ToString()))
                    {
                        confLevel.LevelID = (int)reader["LevelID"];
                    }
                    if (!string.IsNullOrEmpty(reader["Title"].ToString()))
                    {
                        confLevel.Title = (string)reader["Title"];
                    }

                    lstLevels.Add(confLevel);
                }
                catch { }
            }

            if (!reader.IsClosed)
            {
                reader.Close();
            }
        }
 public Privacy()
 {
     Confidentiality    = new ConfidentialityLevel();
     DefaultPermissions = new List <DefaultPermission>();
     Audience           = new List <Audience>();
 }