Example #1
0
 /// <summary>
 /// Convinience method to save a Country Object.
 /// Important note: DO NOT CALL THIS IN A LOOP!
 /// </summary>
 /// <param name="CountryObj"></param>
 /// <remarks>
 /// Important note: DO NOT CALL THIS IN A LOOP!  
 /// This method simply instantiates a CountryDBMapper and calls the save method
 /// </remarks>
 public static void saveCountry(params Country[] CountryObj)
 {
     CountryDBMapper dbm = new CountryDBMapper();
     dbm.saveList(CountryObj.ToList());
 }
        /// <summary>
        /// Convinience method to save a Country Object.
        /// Important note: DO NOT CALL THIS IN A LOOP!
        /// </summary>
        /// <param name="CountryObj"></param>
        /// <remarks>
        /// Important note: DO NOT CALL THIS IN A LOOP!
        /// This method simply instantiates a CountryDBMapper and calls the save method
        /// </remarks>
        public static void saveCountry(params Country[] CountryObj)
        {
            CountryDBMapper dbm = new CountryDBMapper();

            dbm.saveList(CountryObj.ToList());
        }