Ejemplo n.º 1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            Database.SetInitializer(new EntitiesContextInitializer());
            // Workaround to get the DB filled at first run
            SalutationDB             salutations    = new SalutationDB();
            ICollection <Salutation> salutationList = new List <Salutation>();

            salutationList = salutations.GetAllSalutations();
            // End of workaround
        }
Ejemplo n.º 2
0
        public ICollection <Salutation> GetSalutations()
        {
            SalutationDB dataaccess = new SalutationDB();

            return(dataaccess.GetAllSalutations());
        }