예제 #1
0
 public void Seed(MicroBdc.Data.EntityFramework.Context.PlanBuilderDbContext context)
 {
     context.Questions.AddOrUpdate(
         x => x.QuestionId,
         new Question
     {
         QuestionId      = Guid.Parse("d2176263-f638-462b-a311-501ff2527e0a"),
         QuestionName    = "Question 1",
         QuestionContent = "What stage is your business in?",
         ChoiceType      = "R",
         Section         = 1,
         Placement       = 1,
         ChoiceSource    = "",
         VideoAidUrl     = ""
     },
         new Question
     {
         QuestionId      = Guid.Parse("bb717aae-3d5e-49d7-a6b6-071c5d77b8d3"),
         QuestionName    = "Question 2",
         QuestionContent = "What is/are your reason(s) for creating this Business Plan?",
         ChoiceType      = "C",
         Section         = 1,
         Placement       = 2,
         ChoiceSource    = "",
         VideoAidUrl     = ""
     },
         new Question
     {
         QuestionId      = Guid.Parse("257b4b70-bf64-4285-9475-c08124511b60"),
         QuestionName    = "Question 3",
         QuestionContent = "Describe your business as you currently perceive it in a couple sentences only (Answer the question: What do you do?).",
         ChoiceType      = "F",
         Section         = 1,
         Placement       = 3,
         ChoiceSource    = "",
         VideoAidUrl     = ""
     },
         new Question
     {
         QuestionId      = Guid.Parse("5e7f94fb-e72b-433a-a26b-9ec98f179ad8"),
         QuestionName    = "Question 4",
         QuestionContent = "What do you believe are your odds of success based off of what you know now? (1 - Least Likely, 10 - Most Likely)",
         ChoiceType      = "H",
         Section         = 1,
         Placement       = 4,
         ChoiceSource    = "",
         VideoAidUrl     = ""
     },
         new Question
     {
         QuestionId      = Guid.Parse("125c1777-99e5-45e1-896b-6a36ff3c62be"),
         QuestionName    = "Question 5",
         QuestionContent = "How confident are you in your assessment of your odds of success? (1 - Least Confident, 10 - Most Confident)",
         ChoiceType      = "H",
         Section         = 1,
         Placement       = 5,
         ChoiceSource    = "",
         VideoAidUrl     = ""
     },
         new Question
     {
         QuestionId      = Guid.Parse("eda18518-0ec4-4345-b1b4-09898a63681f"),
         QuestionName    = "Question 6",
         QuestionContent = "How confident are you that you will be able to create an effective business plan? (1 - Least Confident, 10 - Most Confident)",
         ChoiceType      = "H",
         Section         = 1,
         Placement       = 6,
         ChoiceSource    = "",
         VideoAidUrl     = ""
     }
         );
 }
예제 #2
0
        public void Seed(MicroBdc.Data.EntityFramework.Context.PlanBuilderDbContext context)
        {
            context.Choices.AddOrUpdate(
                x => x.ChoiceId,

                //Question 1: What stage is your business in? d2176263-f638-462b-a311-501ff2527e0a
                new Choice
            {
                ChoiceId      = Guid.Parse("9499b89d-3d06-43b5-a8f9-da86bbdad513"),
                ChoiceName    = "Choice 1",
                ChoiceContent = "Startup (From Concept to < 1 month)",
                ChoiceType    = "R",
                Placement     = 1,
                QuestionId    = Guid.Parse("d2176263-f638-462b-a311-501ff2527e0a")
            },
                new Choice
            {
                ChoiceId      = Guid.Parse("9a94bdd1-eb6b-469e-b029-8a2121c3f2d4"),
                ChoiceName    = "Choice 2",
                ChoiceContent = "Young (Established but under 5 years)",
                ChoiceType    = "R",
                Placement     = 2,
                QuestionId    = Guid.Parse("d2176263-f638-462b-a311-501ff2527e0a")
            },
                new Choice
            {
                ChoiceId      = Guid.Parse("7d85855b-2da3-4ce4-a0f3-86adc5f4ea63"),
                ChoiceName    = "Choice 3",
                ChoiceContent = "Mature (Established > 5 years)",
                ChoiceType    = "R",
                Placement     = 3,
                QuestionId    = Guid.Parse("d2176263-f638-462b-a311-501ff2527e0a")
            },
                //Question 2: What is/are your reason(s) for creating this Business Plan? bb717aae-3d5e-49d7-a6b6-071c5d77b8d3

                new Choice
            {
                ChoiceId      = Guid.Parse("e9a3cf8b-8f99-4644-8552-41b3ac390ba6"),
                ChoiceName    = "Choice 1",
                ChoiceContent = "To improve my business",
                ChoiceType    = "C",
                Placement     = 1,
                QuestionId    = Guid.Parse("bb717aae-3d5e-49d7-a6b6-071c5d77b8d3")
            },
                new Choice
            {
                ChoiceId      = Guid.Parse("1bf66572-a35c-4a63-a192-c41cde7fc616"),
                ChoiceName    = "Choice 2",
                ChoiceContent = "To improve chances of getting a loan from a bank or other lender",
                ChoiceType    = "C",
                Placement     = 2,
                QuestionId    = Guid.Parse("bb717aae-3d5e-49d7-a6b6-071c5d77b8d3")
            },
                new Choice
            {
                ChoiceId      = Guid.Parse("b0a3b6f6-205a-4410-961d-7b04e28c20ae"),
                ChoiceName    = "Choice 3",
                ChoiceContent = "To improve chances of receiving capital from an investor",
                ChoiceType    = "C",
                Placement     = 3,
                QuestionId    = Guid.Parse("bb717aae-3d5e-49d7-a6b6-071c5d77b8d3")
            },

                //Question 3: Describe your business as you currently perceive it in a couple sentences only (Answer the question: What do you do?).
                //257b4b70-bf64-4285-9475-c08124511b60

                new Choice
            {
                ChoiceId   = Guid.Parse("2093d7e4-9bf5-4738-a02f-736cf25345a1"),
                ChoiceName = "Choice 1",
                ChoiceType = "F",
                Placement  = 1,
                QuestionId = Guid.Parse("257b4b70-bf64-4285-9475-c08124511b60")
            }

                );
        }