Example #1
0
        public void InflateType()
        {
            var db       = new PiPiPrestacionesDBContext();
            var listType = new List <Type> {
                new Type("Agenda", true),
                new Type("Favoritos", true),
                new Type("Alojamientos", true),
                new Type("Mapa", true),
                new Type("Exposición", true),
                new Type("Formulario", true),
                new Type("Certificado", true),
                new Type("Link", true),
                new Type("Disertantes", true),
                new Type("Noticias", true),
                new Type("Paginas", true),
                new Type("Planimetria", true)
            };

            foreach (var item in listType)
            {
                db.Type.Add(item);
            }
            db.SaveChanges();
        }