Example #1
0
        public void AddConnections(List <Country> countries)
        {
            // Allows us to add a list of countries, and also have them
            // be added to the Entity Model relevant data structures

            Connections = countries;
            foreach (Country country in countries)
            {
                CountryConnection conn = new CountryConnection();
                conn.CountryOneID = this.Id;
                conn.CountryTwoID = country.Id;

                CountryConnections.Add(conn);
            }
        }