Beispiel #1
0
        public static void InitializeUrc(URCcontext context)
        {
            context.Database.EnsureCreated();

            if (!context.Opportunities.Any())
            {
                Opportunity_Seeding.GenerateSeed(context);
            }

            context.SaveChanges();
        }
Beispiel #2
0
        public static void GenerateSeed(URCcontext context)
        {
            var opportunites = new Opportunity[]
            {
                new Opportunity
                {
                    ProjectName    = "Health Education, Health Communication, and Health Policy Research",
                    ProfessorName  = "Jessica King",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Health, Kinesiology, and Recreation",
                    Description    = "Health education and health policy research projects in tobacco regulatory science, more specifically e-cigarettes/vaping.",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-30"),
                    EndDate        = DateTime.Parse("2019-10-11"),
                    Pay            = "$20 per hour",
                    Filled         = false,
                    RequiredSkills = "Health Education, Health Communication, Health Policy",
                    SearchTags     = "Health, Health policy, Health system, Tobacco",
                    numOfApplied   = 43,
                    numOfViews     = 86,
                },

                new Opportunity
                {
                    ProjectName    = "Urban Ecology: Water use of alternative groundcover species in the Red Butte Garden",
                    ProfessorName  = "Diane Pataki",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Biology",
                    Description    = "This is a study of the evapotranspiration of ground cover plant species that are proposed as alternatives to turfgrass lawns. The project involves analyzing data previously collected at Red Butte Gardens. Some additional field work at Red Butte will probably be needed. The results will be used to determine which species require less water for irrigation than turfgrass, and will inform water conservation policies and practices..",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-29"),
                    EndDate        = DateTime.Parse("2019-10-12"),
                    Pay            = "$19 per hour",
                    Filled         = false,
                    RequiredSkills = "Urban Ecology",
                    SearchTags     = "Urban, Ecology",
                    numOfApplied   = 23,
                    numOfViews     = 66,
                },

                new Opportunity
                {
                    ProjectName    = "City Climate Change Research Assistant",
                    ProfessorName  = "Devon Cantwell",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Political Science",
                    Description    = "I am analyzing city climate action plans across the world and trying to find key themes, characteristics, and patterns of these climate action plans. Specifically, I will be focusing on Ho Chi Minh City, Buenos Aires, Seoul, and Mexico City, but will also be looking at other city environmental actions as needed for this project.",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-11"),
                    EndDate        = DateTime.Parse("2019-10-12"),
                    Pay            = "$18 per hour",
                    Filled         = false,
                    RequiredSkills = "Political Science",
                    SearchTags     = "Politics, climate",
                    numOfApplied   = 33,
                    numOfViews     = 46,
                },

                new Opportunity
                {
                    ProjectName    = "Undergraduate researchers for a study on Campus Intimate Partner Violence",
                    ProfessorName  = "Heather Melton",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Sociology",
                    Description    = "“How College Students Describe and Experience Intimate Partner Violence: A University of Utah Landscape Study” is a year-long study that includes an inventory of educational practices, policy and practice analysis, observations, focus groups, walking interviews, and staff interviews. It seeks to understand the landscape of all on campus around intimate personal violence, particularly students with minoritized identities. Work under grad students & faculty project investigators (Drs. Linder, Melton, & Richards)",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-11"),
                    EndDate        = DateTime.Parse("2019-10-12"),
                    Pay            = "$17 per hour",
                    Filled         = false,
                    RequiredSkills = "Sociology",
                    SearchTags     = "Sociology, Violence ",
                    numOfApplied   = 13,
                    numOfViews     = 56,
                },

                new Opportunity
                {
                    ProjectName    = "Understanding disease susceptibility at the interface of developmental biology, stem cell biology, and immunology",
                    ProfessorName  = "Anna Beaudin",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Internal Medicine",
                    Description    = "The Beaudin lab is broadly interested in how early life parameters, such as infection or nutrition, shape the establishment and trajectory of the immune system from hematopoietic, or blood, stem cells.",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-11"),
                    EndDate        = DateTime.Parse("2019-10-12"),
                    Pay            = "$17 per hour",
                    Filled         = false,
                    RequiredSkills = "Medical science",
                    SearchTags     = "Medicine, life, nutrition",
                    numOfApplied   = 33,
                    numOfViews     = 66,
                },

                new Opportunity
                {
                    ProjectName    = "BABY AFFECT AND BEHAVIOR STUDY (BABY STUDY)",
                    ProfessorName  = "Diane Pataki",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Psychology",
                    Description    = "Emotion dysregulation refers to experiencing emotions that are excessively intense, prolonged, or unpredictable. Emotion dysregulation is a feature of many mental disorders, and it often interferes with appropriate goal-directed behavior and interpersonal relationships.",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-29"),
                    EndDate        = DateTime.Parse("2019-10-12"),
                    Pay            = "$19 per hour",
                    Filled         = false,
                    RequiredSkills = "Urban Ecology",
                    SearchTags     = "Urban, Ecology",
                    numOfApplied   = 53,
                    numOfViews     = 86,
                },

                new Opportunity
                {
                    ProjectName    = "IMPROVED METHODS FOR MEASURING HEART DISEASE AND STROKE PARAMETERS WITH MRI",
                    ProfessorName  = "Diane Pataki",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Radiology & Imaging",
                    Description    = "The DiBella lab seeks to invent and refine new and better methods for the acquisition, reconstruction, and post-processing of MRI, with particular emphasis on cardiac and stroke applications.",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-29"),
                    EndDate        = DateTime.Parse("2019-10-12"),
                    Pay            = "$19 per hour",
                    Filled         = false,
                    RequiredSkills = "Urban Ecology",
                    SearchTags     = "Urban, Ecology",
                    numOfApplied   = 23,
                    numOfViews     = 96,
                },

                new Opportunity
                {
                    ProjectName    = "MOLECULAR ACTIVATION OF QUIESCENT CARDIAC FIBROBLAST TO MYOFIBROBLAST IN HEART FAILURE INDUCED BY MYOCARDIAL INJURY",
                    ProfessorName  = "Diane Pataki",
                    ProfessorEmail = "*****@*****.**",
                    Department     = "Internal Medicine",
                    Description    = "Ischemic heart disease and heart failure HF is the leading cause of death and disability worldwide. Activated myofibroblast induced by injury or heart diseases adversely affects the cardiac function by depositing excess extracellular matrix and remodel the structure of myocardium resulting in increased stiffness and reduced compliance of cardiac muscle.",
                    AssociatedImag = "",
                    StudentMentor  = "Danny Lim",
                    BeginningDate  = DateTime.Parse("2020-09-29"),
                    EndDate        = DateTime.Parse("2019-10-12"),
                    Pay            = "$19 per hour",
                    Filled         = false,
                    RequiredSkills = "Urban Ecology",
                    SearchTags     = "Urban, Ecology",
                    numOfApplied   = 23,
                    numOfViews     = 96,
                },
            };

            context.Opportunities.AddRange(opportunites);
            context.SaveChanges();
        }