Ejemplo n.º 1
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any Scriptures.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Book      = "Test1",
                    AddedDate = DateTime.Parse("1989-2-12"),
                    Note      = "Note Test 1",
                    Chapter   = 1,
                    Verse     = 2
                },

                    new Scripture
                {
                    Book      = "Test2 ",
                    AddedDate = DateTime.Parse("1984-3-13"),
                    Note      = "Note Test 2",
                    Chapter   = 1,
                    Verse     = 2
                },

                    new Scripture
                {
                    Book      = "Test3",
                    AddedDate = DateTime.Parse("1986-2-23"),
                    Note      = "Note Test 3",
                    Chapter   = 1,
                    Verse     = 2
                },

                    new Scripture
                {
                    Book      = "Test4",
                    AddedDate = DateTime.Parse("1959-4-15"),
                    Note      = "Note Test 4",
                    Chapter   = 1,
                    Verse     = 2
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 2
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.JournalEntry.Any())
                {
                    return;   // DB has been seeded
                }

                context.JournalEntry.AddRange(
                    new JournalEntry
                {
                    Title     = "Ten Commandments",
                    EntryDate = DateTime.Parse("2019-10-29"),
                    Book      = "Genesis",
                    Reference = "20: 3-17",
                    Notes     = "The Ten Commandments are pretty great."
                },

                    new JournalEntry
                {
                    Title     = "Sacrament Prayers",
                    EntryDate = DateTime.Parse("2019-10-28"),
                    Book      = "Doctrine and Covenants",
                    Reference = "20: 77,79",
                    Notes     = "Bread and water to remember Christ's atoning sacrifice."
                },

                    new JournalEntry
                {
                    Title     = "Don't procrastinate",
                    EntryDate = DateTime.Parse("2019-10-27"),
                    Book      = "Alma",
                    Reference = "34: 32-34",
                    Notes     = "Prepare now."
                },

                    new JournalEntry
                {
                    Title     = "Be like this",
                    EntryDate = DateTime.Parse("2019-10-26"),
                    Book      = "Alma",
                    Reference = "7: 23-24",
                    Notes     = "This is a great list of qualities to pursue. Imagine if everyone in the world were like this. There would be no war, no poor, no inequality. There would be peace."
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 3
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Journal.Any())
                {
                    return;   // DB has been seeded
                }

                context.Journal.AddRange(
                    new Journal
                {
                    Book      = "Nephi",
                    Chapter   = "1",
                    Verse     = "1",
                    EntryDate = DateTime.Parse("2020-2-11"),
                    Note      = "He was highly favored. He did what God wanted.",
                },

                    new Journal
                {
                    Book      = "Nephi",
                    Chapter   = "6:",
                    Verse     = "4-5",
                    EntryDate = DateTime.Parse("2020-1-12"),
                    Note      = "They Will Prosper.",
                },

                    new Journal
                {
                    Book      = "Matthew",
                    Chapter   = "10",
                    Verse     = "13",
                    EntryDate = DateTime.Parse("2020-2-20"),
                    Note      = "Peace.",
                },

                    new Journal
                {
                    Book      = "Philippians",
                    Chapter   = "4",
                    Verse     = "7",
                    EntryDate = DateTime.Parse("2020-2-12"),
                    Note      = "Peace through Jesus Christ.s",
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 4
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Date    = DateTime.Parse("2016-2-12"),
                    Book    = "Alma",
                    Chapter = 37,
                    Verse   = 37,
                    Notes   = "This is my favorite scripture"
                },

                    new Scripture
                {
                    Date    = DateTime.Parse("2016-2-13"),
                    Book    = "1 Nephi",
                    Chapter = 1,
                    Verse   = 3,
                    Notes   = "This is another favorite scripture"
                },

                    new Scripture
                {
                    Date    = DateTime.Parse("2016-2-13"),
                    Book    = "2 Nephi",
                    Chapter = 2,
                    Verse   = 2,
                    Notes   = "This is my other favorite scripture"
                },

                    new Scripture
                {
                    Date    = DateTime.Parse("2016-2-15"),
                    Book    = "Moroni",
                    Chapter = 10,
                    Verse   = 5,
                    Notes   = "This is my favorite scripture"
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 5
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any journal entries.
                if (context.JournalEntry.Any())
                {
                    return;   // DB has been seeded
                }

                context.JournalEntry.AddRange(
                    new JournalEntry
                {
                    BookName  = "Mosiah",
                    DateAdded = DateTime.Parse("2020-2-12"),
                    Chapter   = 2,
                    Verse     = 17,
                    Notes     = "Search Me"
                },

                    new JournalEntry
                {
                    BookName  = "D&C",
                    DateAdded = DateTime.Parse("2020-2-13"),
                    Chapter   = 19,
                    Verse     = 23,
                    Notes     = ""
                },

                    new JournalEntry
                {
                    BookName  = "1 Peter",
                    DateAdded = DateTime.Parse("2020-2-23"),
                    Chapter   = 4,
                    Verse     = 6,
                    Notes     = ""
                },

                    new JournalEntry
                {
                    BookName  = "Alma",
                    DateAdded = DateTime.Parse("2020-4-15"),
                    Chapter   = 41,
                    Verse     = 10,
                    Notes     = ""
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 6
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Book.Any())
                {
                    return;   // DB has been seeded
                }

                context.Book.AddRange(
                    new Book
                {
                    BookName  = "1 Nephi",
                    DateAdded = DateTime.Parse("2020-2-12"),
                    Chapter   = 1,
                    Verse     = 1,
                    Note      = "This is the first chapter."
                },

                    new Book
                {
                    BookName  = "2 Nephi",
                    DateAdded = DateTime.Parse("2020-2-12"),
                    Chapter   = 2,
                    Verse     = 1,
                    Note      = "This is the Second chapter."
                },

                    new Book
                {
                    BookName  = "Alma",
                    DateAdded = DateTime.Parse("2020-2-12"),
                    Chapter   = 3,
                    Verse     = 1,
                    Note      = "This is the Third chapter."
                },

                    new Book
                {
                    BookName  = "Moroni",
                    DateAdded = DateTime.Parse("2020-2-12"),
                    Chapter   = 1,
                    Verse     = 1,
                    Note      = "This is the first chapter."
                }
                    );
                context.SaveChanges();
            }
        }
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Title            = "Alma teaches Helaman",
                    EntryDate        = DateTime.Parse("2019-2-12"),
                    Book             = "The Book of Mormon",
                    ScripturePassage = "Alma 37",
                    Note             = "Learn wisdom in thy youth."
                },

                    new Scripture
                {
                    Title            = "Alma teaches Shiblon",
                    EntryDate        = DateTime.Parse("2019-2-12"),
                    Book             = "The Book of Mormon",
                    ScripturePassage = "Alma 38",
                    Note             = "Learn wisdom in thy youth."
                },

                    new Scripture
                {
                    Title            = "Alma teaches Coriantum",
                    EntryDate        = DateTime.Parse("2019-2-12"),
                    Book             = "The Book of Mormon",
                    ScripturePassage = "Alma 40",
                    Note             = "The spirits of all men are brought back to God who granted them life."
                },

                    new Scripture
                {
                    Title            = "Jesus teaches about being a light",
                    EntryDate        = DateTime.Parse("2019-2-12"),
                    Book             = "The Bible",
                    ScripturePassage = "Mathew 5",
                    Note             = "We need to be a light to the world."
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 8
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.JournalEntry.Any())
                {
                    return;   // DB has been seeded
                }

                context.JournalEntry.AddRange(
                    new JournalEntry
                {
                    Title     = "Sacrament Prayers",
                    EntryDate = DateTime.Parse("2019-11-01"),
                    Book      = "Doctrine and Covenants",
                    Reference = "20: 77, 79",
                    Notes     = "Sacrament",
                },

                    new JournalEntry
                {
                    Title     = "Lord hath Commanded",
                    EntryDate = DateTime.Parse("2019-10-31"),
                    Book      = "1 Nephi",
                    Reference = "3: 7",
                    Notes     = "I will go, I will do",
                },

                    new JournalEntry
                {
                    Title     = "Service of your God",
                    EntryDate = DateTime.Parse("2019-10-29"),
                    Book      = "Mosiah",
                    Reference = "2: 17",
                    Notes     = "Serving others brings us closer to God",
                },

                    new JournalEntry
                {
                    Title     = "Seek ye for the Kingdom of God",
                    EntryDate = DateTime.Parse("2019-11-02"),
                    Book      = "Jacob",
                    Reference = "2: 18-19",
                    Notes     = "Kingdom of God",
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 9
0
        public static void Intialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(serviceProvider.GetRequiredService <DbContextOptions <MyScriptureJournalContext> >()))
            {
                //Look for Scriptures
                if (context.JournalEntry.Any())
                {
                    return; // DBNull has been seeded
                }

                context.JournalEntry.AddRange(

                    new JournalEntry
                {
                    DatePosted = DateTime.Parse("07/04/1997"),
                    Book       = "Mathew",
                    Chapter    = 28,
                    Verse      = "19-20",
                    Note       = "Go and Teach all Nations and Baptize them"
                },
                    new JournalEntry
                {
                    DatePosted = DateTime.Parse("03/15/1990"),
                    Book       = "Moroni",
                    Chapter    = 10,
                    Verse      = "3-10",
                    Note       = "Promise of Book of Mormon, if it is true."
                },

                    new JournalEntry
                {
                    DatePosted = DateTime.Parse("08/15/1986"),
                    Book       = "1 Nephi",
                    Chapter    = 1,
                    Verse      = "1",
                    Note       = "Born of Goodly Parents"
                },

                    new JournalEntry
                {
                    DatePosted = DateTime.Parse("02/22/2001"),
                    Book       = "Genesis",
                    Chapter    = 1,
                    Verse      = "1",
                    Note       = "Creation of Earth and Man"
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 10
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any Scriptures.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Book      = "1 Nephi",
                    Chapter   = 3,
                    Verse     = 7,
                    Notes     = "I will go and do",
                    DateAdded = DateTime.Parse("2020-2-10")
                },
                    new Scripture
                {
                    Book      = "2 Nephi",
                    Chapter   = 2,
                    Verse     = 27,
                    Notes     = "Men are to have joy",
                    DateAdded = DateTime.Parse("2020-2-12")
                },
                    new Scripture
                {
                    Book      = "Enos",
                    Chapter   = 1,
                    Verse     = 12,
                    Notes     = "Sins are forgiven",
                    DateAdded = DateTime.Parse("2020-2-17")
                },
                    new Scripture
                {
                    Book      = "Alma",
                    Chapter   = 5,
                    Verse     = 12,
                    Notes     = "Spiritual to do list",
                    DateAdded = DateTime.Parse("2020-2-14")
                }

                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 11
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Journal.Any())
                {
                    return;   // DB has been seeded
                }

                context.Journal.AddRange(
                    new Journal
                {
                    FavoriteScripture = "1 nephi 3:7",
                    Notes             = "Really True!",
                    Book        = "The Book Of Mormom",
                    EditionDate = DateTime.Parse("2020-02-12")
                },

                    new Journal
                {
                    FavoriteScripture = "Alma 32:3",
                    Notes             = "I need more faith",
                    Book        = "The Book Of Mormom",
                    EditionDate = DateTime.Parse("2020-02-15")
                },

                    new Journal
                {
                    FavoriteScripture = "2 nephi 32:8-9",
                    Notes             = "Pray is the Key!",
                    Book        = "The Book Of Mormom",
                    EditionDate = DateTime.Parse("2020-08-12")
                },

                    new Journal
                {
                    FavoriteScripture = "Mark 1:1",
                    Notes             = "I need read one more time this",
                    Book        = "New Testament",
                    EditionDate = DateTime.Parse("2020-10-18")
                }
                    );
                context.SaveChanges();
            }
        }
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Book       = "When Harry Met Sally",
                    Chapter    = "Romantic Comedy",
                    Notes      = "Romantic Comedy",
                    InsertDate = DateTime.Parse("1989-2-12")
                },

                    new Scripture
                {
                    Book       = "When Harry Met Sally",
                    Chapter    = "Romantic Comedy",
                    Notes      = "Romantic Comedy",
                    InsertDate = DateTime.Parse("1989-2-12")
                },

                    new Scripture
                {
                    Book       = "When Harry Met Sally",
                    Chapter    = "Romantic Comedy",
                    Notes      = "Romantic Comedy",
                    InsertDate = DateTime.Parse("1989-2-12")
                },

                    new Scripture
                {
                    Book       = "When Harry Met Sally",
                    Chapter    = "Romantic Comedy",
                    Notes      = "Romantic Comedy",
                    InsertDate = DateTime.Parse("1989-2-12")
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 13
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                if (context.Scripture.Any())
                {
                    return;
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Title     = "2 Nephi 28:3",
                    DateAdded = DateTime.Parse("2019-11-02"),
                    Notes     = " ",
                    Book      = "2 Nephi"
                },

                    new Scripture
                {
                    Title     = "Mosiah 3:40",
                    DateAdded = DateTime.Parse("2019-11-02"),
                    Notes     = " ",
                    Book      = "Mosiah"
                },

                    new Scripture
                {
                    Title     = "Isaiah 1:40",
                    DateAdded = DateTime.Parse("2019-11-02"),
                    Notes     = " ",
                    Book      = "Isaiah"
                },

                    new Scripture
                {
                    Title     = "Ezekiel 40:1",
                    DateAdded = DateTime.Parse("2019-11-02"),
                    Notes     = " ",
                    Book      = "Ezekiel"
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 14
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <DbContextOptions <MyScriptureJournalContext> >()))
            {
                if (context.JournalEntry.Any())
                {
                    return;
                }

                context.JournalEntry.AddRange(

                    new JournalEntry
                {
                    Title     = "Favorite Scripture",
                    EntryDate = DateTime.Parse("2020-9-1"),
                    Book      = "Moroni",
                    Chapter   = 10,
                    Verse     = 5,
                    Notes     = "This is my favorite scripture."
                },

                    new JournalEntry
                {
                    Title     = "The Lord's Time",
                    EntryDate = DateTime.Parse("2020-8-2"),
                    Book      = "Abraham",
                    Chapter   = 3,
                    Verse     = 4,
                    Notes     = "This gives information on how the Lord's time differs from our (earth) time."
                },

                    new JournalEntry
                {
                    Title     = "Remember This About Service",
                    EntryDate = DateTime.Parse("2020-8-5"),
                    Book      = "Mosiah",
                    Chapter   = 2,
                    Verse     = 17,
                    Notes     = "You always need to remember this scripture and how it defines service."
                }

                    );

                context.SaveChanges();
            }
        }
Ejemplo n.º 15
0
 public static void Initialize(IServiceProvider serviceProvider)
 {
     using (var context = new MyScriptureJournalContext(serviceProvider.GetRequiredService <
                                                            DbContextOptions <MyScriptureJournalContext> >()))
     {
         if (context.Scripture.Any())
         {
             return;
         }
         context.Scripture.AddRange(
             new Scripture
         {
             Book        = "Matthew",
             Chapter     = 28,
             Verse       = 6,
             Note        = "He is risen.",
             DateCreated = DateTime.Parse("2019-04-21")
         },
             new Scripture
         {
             Book        = "1 Nephi",
             Chapter     = 10,
             Verse       = 4,
             Note        = "Prophecy that Christ would come as Savior of the world.",
             DateCreated = DateTime.Parse("2019-12-25")
         },
             new Scripture
         {
             Book        = "1 Corinthians",
             Chapter     = 10,
             Verse       = 13,
             Note        = "God will not try/tempt you above what you can bear.",
             DateCreated = DateTime.Parse("2020-01-30")
         },
             new Scripture
         {
             Book        = "D&C",
             Chapter     = 121,
             Verse       = 7,
             Note        = "We can find peace in knowing that adversity is temporary.",
             DateCreated = DateTime.Parse("2019-09-12")
         }
             );
         context.SaveChanges();
     }
 }
Ejemplo n.º 16
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using var context = new MyScriptureJournalContext(
                      serviceProvider.GetRequiredService <
                          DbContextOptions <MyScriptureJournalContext> >());
            // Look for any scriptures.
            if (context.Scripture.Any())
            {
                return;   // DB has been seeded
            }

            context.Scripture.AddRange(
                new Scripture
            {
                Book    = "Helaman",
                Chapter = 5,
                Verse   = "12",
                Notes   = "He is the ONLY foundation that will not fall.",
                Date    = DateTime.Parse("2013-12-12")
            },
                new Scripture
            {
                Book    = "2 Nephi",
                Chapter = 2,
                Verse   = "24",
                Notes   = "God knows all. He has a plan for me and I need to follow Christ to live that plan.",
                Date    = DateTime.Parse("2019-9-2")
            },
                new Scripture
            {
                Book    = "Alma",
                Chapter = 33,
                Verse   = "11",
                Notes   = "God hears us because of Jesus Christ. It is through Him that we can find joy in our afflictions.",
                Date    = DateTime.Parse("2014-7-5")
            }
                );
            context.SaveChanges();
        }
Ejemplo n.º 17
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    DateAdded = DateTime.Parse("2019-10-27"),
                    Book      = "1 Nephi",
                    Chapter   = "1:1",
                    Notes     = "I've read this scripture a million times"
                });
                context.SaveChanges();
            }
        }
Ejemplo n.º 18
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                if (context.ScriptureJournal.Any())
                {
                    return;
                }

                context.ScriptureJournal.AddRange(
                    new ScriptureJournal
                {
                    Book         = "1 Nephi",
                    ChapterVerse = "3:7",
                    Notes        = "The Lord will always provide the way, if we do our part.",
                    CreatedDate  = DateTime.Parse("2020-11-01")
                },
                    new ScriptureJournal
                {
                    Book         = "1 Nephi",
                    ChapterVerse = "11:21-22",
                    Notes        = "The tree in the Lehi's dream is the love of the Lord.",
                    CreatedDate  = DateTime.Parse("2020-11-01")
                },
                    new ScriptureJournal
                {
                    Book         = "Alma ",
                    ChapterVerse = "32:21",
                    Notes        = "Alma taught us about faith.",
                    CreatedDate  = DateTime.Parse("2020-11-02")
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 19
0
 public IndexModel(MyScriptureJournal.Models.MyScriptureJournalContext context)
 {
     _context = context;
 }
Ejemplo n.º 20
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <DbContextOptions <MyScriptureJournalContext> >()))
            {
                //look for any journal entries
                if (context.JournalEntry.Any())
                {
                    return; //DB has been seeded
                }
                context.JournalEntry.AddRange(
                    new JournalEntry
                {
                    Book      = "Omni",
                    Chapter   = 1,
                    Verse     = 26,
                    Note      = "Am I offering my 'whole soul'?",
                    DateAdded = DateTime.Parse("2001-2-1")
                },

                    new JournalEntry
                {
                    Book      = "Moroni",
                    Chapter   = 7,
                    Verse     = 48,
                    Note      = "Charity is a spiritual gift. Pray for it.",
                    DateAdded = DateTime.Parse("2010-10-10")
                },
                    new JournalEntry
                {
                    Book      = "Alma",
                    Chapter   = 42,
                    Verse     = 23,
                    Note      = "Mercy claimeth the penitent...",
                    DateAdded = DateTime.Parse("1990-10-15")
                },
                    new JournalEntry
                {
                    Book      = "1 Corintians",
                    Chapter   = 11,
                    Verse     = 11,
                    Note      = "It's a sign!",
                    DateAdded = DateTime.Parse("1995-1-21")
                },
                    new JournalEntry
                {
                    Book      = "D&C",
                    Chapter   = 84,
                    Verse     = 46,
                    Note      = "The Spirit giveth light...",
                    DateAdded = DateTime.Parse("2001-6-10")
                },
                    new JournalEntry
                {
                    Book      = "D&C",
                    Chapter   = 64,
                    Verse     = 29,
                    Note      = "Be the Lord's agent",
                    DateAdded = DateTime.Parse("2018-11-15")
                },
                    new JournalEntry
                {
                    Book      = "John",
                    Chapter   = 17,
                    Verse     = 5,
                    Note      = "Christ references the glory he had when he was with the Father",
                    DateAdded = DateTime.Parse("2004-5-6")
                },
                    new JournalEntry
                {
                    Book      = "Luke",
                    Chapter   = 2,
                    Verse     = 52,
                    Note      = "Christ grows in stature and wisdom",
                    DateAdded = DateTime.Parse("1998-12-25")
                },
                    new JournalEntry
                {
                    Book      = "Matthew",
                    Chapter   = 24,
                    Verse     = 44,
                    Note      = "Be ready",
                    DateAdded = DateTime.Parse("1989-10-10")
                },
                    new JournalEntry
                {
                    Book      = "1 Samuel",
                    Chapter   = 17,
                    Verse     = 48,
                    Note      = "Be like David, run to ward the challenge",
                    DateAdded = DateTime.Parse("2018-11-15")
                },
                    new JournalEntry
                {
                    Book      = "Moses",
                    Chapter   = 1,
                    Verse     = 13,
                    Note      = "Moses uses the knowledge of his true identity as a source of power",
                    DateAdded = DateTime.Parse("2001-2-1")
                },
                    new JournalEntry
                {
                    Book      = "D&C",
                    Chapter   = 107,
                    Verse     = 99,
                    Note      = "Do your duty!",
                    DateAdded = DateTime.Parse("2000-1-1")
                },
                    new JournalEntry
                {
                    Book      = "D&C",
                    Chapter   = 20,
                    Verse     = 32,
                    Note      = "We can fail so we need to 'take heed also'",
                    DateAdded = DateTime.Parse("2002-2-1")
                },
                    new JournalEntry
                {
                    Book      = "Mosiah",
                    Chapter   = 2,
                    Verse     = 41,
                    Note      = "Happy state - hold out faithful",
                    DateAdded = DateTime.Parse("2001-2-1")
                },
                    new JournalEntry
                {
                    Book      = "2 Nephi",
                    Chapter   = 9,
                    Verse     = 50,
                    Note      = "Accept what the Lord is offering",
                    DateAdded = DateTime.Parse("2001-2-1")
                },
                    new JournalEntry
                {
                    Book      = "2 Nephi",
                    Chapter   = 9,
                    Verse     = 39,
                    Note      = "Don't be carnally-minded",
                    DateAdded = DateTime.Parse("2018-11-11")
                },
                    new JournalEntry
                {
                    Book      = "3 Nephi",
                    Chapter   = 11,
                    Verse     = 11,
                    Note      = "Christ's bio - I have suffered the will of the Father in all things",
                    DateAdded = DateTime.Parse("2015-8-1")
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 21
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any books
                if (context.Book.Any())
                {
                    return;   // DB has been seeded
                }

                context.Canon.AddRange(
                    new Canon()
                {
                    CanonName = "Old Testament"
                },
                    new Canon()
                {
                    CanonName = "New Testament"
                },
                    new Canon()
                {
                    CanonName = "Book of Mormon"
                },
                    new Canon()
                {
                    CanonName = "Doctrine and Covenants"
                },
                    new Canon()
                {
                    CanonName = "Pearl of Great Price"
                }
                    );

                context.SaveChanges();

                context.Book.AddRange(
                    // Old Testament
                    new Book()
                {
                    BookName = "Genesis", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Exodus", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Leviticus", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Numbers", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Deuteronomy", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Joshua", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Judges", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Judges", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Ruth", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 Samuel", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 Samuel", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 Kings", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 Kings", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 Chronicles", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 Chronicles", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Ezra", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Nehemiah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Esther", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Job", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Psalms", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Proverbs", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Ecclesiastes", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Song of Solomon", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Isaiah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Jeremiah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Lamentations", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Ezekiel", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Daniel", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Hosea", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Joel", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Amos", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Obadiah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Jonah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Micah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Nahum", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Habakkuk", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Zephaniah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Haggai", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Zechariah", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Malachi", CanonId = context.Canon.Single(c => c.CanonName == "Old Testament").CanonId
                },

                    // New Testament
                    new Book()
                {
                    BookName = "Matthew", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Mark", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Luke", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "John", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Acts", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Romans", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 Corinthians", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 Corinthians", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Galations", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Ephesians", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Philippians", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Colossians", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 Thessalonians", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 Thessalonians", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 Timothy", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 Timothy", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Titus", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Philemon", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Hebrews", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "James", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 Peter", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 Peter", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "1 John", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "2 John", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "3 John", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Jude", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },
                    new Book()
                {
                    BookName = "Revelation", CanonId = context.Canon.Single(c => c.CanonName == "New Testament").CanonId
                },

                    // Book of Mormon
                    new Book()
                {
                    BookName = "1 Nephi", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "2 Nephi", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Jacob", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Enos", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Jarom", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Omni", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Words of Mormon", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Mosiah", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Alma", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Helaman", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "3 Nephi", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "4 Nephi", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Mormon", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Ether", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },
                    new Book()
                {
                    BookName = "Moroni", CanonId = context.Canon.Single(c => c.CanonName == "Book of Mormon").CanonId
                },

                    // Doctrine and Covenants
                    new Book()
                {
                    BookName = "Doctrine and Covenants Sections", CanonId = context.Canon.Single(c => c.CanonName == "Doctrine and Covenants").CanonId
                },
                    new Book()
                {
                    BookName = "Official Declaration 1", CanonId = context.Canon.Single(c => c.CanonName == "Doctrine and Covenants").CanonId
                },
                    new Book()
                {
                    BookName = "Official Declaration 2", CanonId = context.Canon.Single(c => c.CanonName == "Doctrine and Covenants").CanonId
                },

                    // Pearl of Great Price
                    new Book()
                {
                    BookName = "Moses", CanonId = context.Canon.Single(c => c.CanonName == "Pearl of Great Price").CanonId
                },
                    new Book()
                {
                    BookName = "Abraham", CanonId = context.Canon.Single(c => c.CanonName == "Pearl of Great Price").CanonId
                },
                    new Book()
                {
                    BookName = "Joseph Smith - Matthew", CanonId = context.Canon.Single(c => c.CanonName == "Pearl of Great Price").CanonId
                },
                    new Book()
                {
                    BookName = "Joseph Smith - History", CanonId = context.Canon.Single(c => c.CanonName == "Pearl of Great Price").CanonId
                },
                    new Book()
                {
                    BookName = "Articles of Faith", CanonId = context.Canon.Single(c => c.CanonName == "Pearl of Great Price").CanonId
                }
                    );

                context.SaveChanges();
            }
        }
Ejemplo n.º 22
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any scriptures.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Book    = "Nephi",
                    Chapter = 2,
                    Verse   = 15,
                    Note    = "Sunday school",
                    Date    = DateTime.Parse("1998-3-5"),
                },

                    new Scripture
                {
                    Book    = "Lehi",
                    Chapter = 7,
                    Verse   = 10,
                    Note    = "Good",
                    Date    = DateTime.Parse("2019-2-12"),
                },

                    new Scripture
                {
                    Book    = "Amon",
                    Chapter = 37,
                    Verse   = 10,
                    Note    = "Good",
                    Date    = DateTime.Parse("2019-2-12"),
                },

                    new Scripture
                {
                    Book    = "Lehi",
                    Chapter = 7,
                    Verse   = 10,
                    Note    = "Good",
                    Date    = DateTime.Parse("2018-2-12"),
                },

                    new Scripture
                {
                    Book    = "Lehi",
                    Chapter = 7,
                    Verse   = 10,
                    Note    = "Good",
                    Date    = DateTime.Parse("1989-2-12"),
                },

                    new Scripture
                {
                    Book    = "Lehi",
                    Chapter = 7,
                    Verse   = 10,
                    Note    = "Good",
                    Date    = DateTime.Parse("2019-3-12"),
                },

                    new Scripture
                {
                    Book    = "Jacob",
                    Chapter = 1,
                    Verse   = 19,
                    Note    = "Something",
                    Date    = DateTime.Parse("2001-5-19"),
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 23
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Check if there are any scripture entry
                if (context.Scripture.Any())
                {
                    return; // DB has been seeded
                }
                context.Scripture.AddRange(

                    new Scripture
                {
                    DateAdded = DateTime.Now,
                    Book      = "1 Nephi",
                    Chapter   = 3,
                    Verse     = "1",
                    Note      = "I will go and do because I know"
                },

                    new Scripture
                {
                    DateAdded = DateTime.Now,
                    Book      = "2 Nephi",
                    Chapter   = 2,
                    Verse     = "25",
                    Note      = "It was the Heavenly Father's plan that Adam and Eve were expelled from the Eden so we can come to earth and have joy"
                },

                    new Scripture
                {
                    DateAdded = DateTime.Now,
                    Book      = "Alma",
                    Chapter   = 32,
                    Verse     = "21",
                    Note      = "Faith is not a perfect knowledge"
                },

                    new Scripture
                {
                    DateAdded = DateTime.Now,
                    Book      = "Helaman",
                    Chapter   = 5,
                    Verse     = "12",
                    Note      = "Keep far from the devil and build a foundation on Christ"
                },

                    new Scripture
                {
                    DateAdded = DateTime.Now,
                    Book      = "Matthew",
                    Chapter   = 5,
                    Verse     = "14-16",
                    Note      = "We should be witnesses of Christ everywhere"
                },

                    new Scripture
                {
                    DateAdded = DateTime.Now,
                    Book      = "Luke",
                    Chapter   = 24,
                    Verse     = "36-39",
                    Note      = "Resurrected bodies are made of bond and flesh"
                },

                    new Scripture
                {
                    DateAdded = DateTime.Now,
                    Book      = "Jhon",
                    Chapter   = 17,
                    Verse     = "3",
                    Note      = "Get to know Heavenly Father and Christ and all their work is Eternal life"
                }

                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 24
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                if (context.Book.Any())
                {
                    return;
                }

                context.Book.AddRange(
                    new Book
                {
                    ID   = 1,
                    Name = "Genesis"
                },
                    new Book
                {
                    ID   = 2,
                    Name = "Exodus"
                },
                    new Book
                {
                    ID   = 3,
                    Name = "Leviticus"
                },
                    new Book
                {
                    ID   = 4,
                    Name = "Numbers"
                },
                    new Book
                {
                    ID   = 5,
                    Name = "Deuteronomy"
                },
                    new Book
                {
                    ID   = 6,
                    Name = "Joshua"
                },
                    new Book
                {
                    ID   = 7,
                    Name = "Judges"
                },
                    new Book
                {
                    ID   = 8,
                    Name = "Ruth"
                },
                    new Book
                {
                    ID   = 9,
                    Name = "1 Samuel"
                },
                    new Book
                {
                    ID   = 10,
                    Name = "2 Samuel"
                },
                    new Book
                {
                    ID   = 11,
                    Name = "1 Kings"
                },
                    new Book
                {
                    ID   = 12,
                    Name = "2 Kings"
                },
                    new Book
                {
                    ID   = 13,
                    Name = "1 Chronicles"
                },
                    new Book
                {
                    ID   = 14,
                    Name = "2 Chronicles"
                },
                    new Book
                {
                    ID   = 15,
                    Name = "Ezra"
                },
                    new Book
                {
                    ID   = 16,
                    Name = "Nehemiah"
                },
                    new Book
                {
                    ID   = 17,
                    Name = "Esther"
                },
                    new Book
                {
                    ID   = 18,
                    Name = "Job"
                },
                    new Book
                {
                    ID   = 19,
                    Name = "Psalms"
                },
                    new Book
                {
                    ID   = 20,
                    Name = "Proverbs"
                },
                    new Book
                {
                    ID   = 21,
                    Name = "Ecclesiastes"
                },
                    new Book
                {
                    ID   = 22,
                    Name = "Song of Solomon"
                },
                    new Book
                {
                    ID   = 23,
                    Name = "Isaiah"
                },
                    new Book
                {
                    ID   = 24,
                    Name = "Jeremiah"
                },
                    new Book
                {
                    ID   = 25,
                    Name = "Lamentations"
                },
                    new Book
                {
                    ID   = 26,
                    Name = "Ezekiel"
                },
                    new Book
                {
                    ID   = 27,
                    Name = "Daniel"
                },
                    new Book
                {
                    ID   = 28,
                    Name = "Hosea"
                },
                    new Book
                {
                    ID   = 29,
                    Name = "Joel"
                },
                    new Book
                {
                    ID   = 30,
                    Name = "Amos"
                },
                    new Book
                {
                    ID   = 31,
                    Name = "Obadiah"
                },
                    new Book
                {
                    ID   = 32,
                    Name = "Jonah"
                },
                    new Book
                {
                    ID   = 33,
                    Name = "Micah"
                },
                    new Book
                {
                    ID   = 34,
                    Name = "Nahum"
                },
                    new Book
                {
                    ID   = 35,
                    Name = "Habakkuk"
                },
                    new Book
                {
                    ID   = 36,
                    Name = "Zephaniah"
                },
                    new Book
                {
                    ID   = 37,
                    Name = "Haggai"
                },
                    new Book
                {
                    ID   = 38,
                    Name = "Zechariah"
                },
                    new Book
                {
                    ID   = 39,
                    Name = "Malachi"
                },



                    new Book
                {
                    ID   = 40,
                    Name = "Matthew"
                },
                    new Book
                {
                    ID   = 41,
                    Name = "Mark"
                },
                    new Book
                {
                    ID   = 42,
                    Name = "Luke"
                },
                    new Book
                {
                    ID   = 43,
                    Name = "John"
                },
                    new Book
                {
                    ID   = 44,
                    Name = "Acts"
                },
                    new Book
                {
                    ID   = 45,
                    Name = "Romans"
                },
                    new Book
                {
                    ID   = 46,
                    Name = "1 Corinthians"
                },
                    new Book
                {
                    ID   = 47,
                    Name = "2 Corinthians"
                },
                    new Book
                {
                    ID   = 48,
                    Name = "Galatians"
                },
                    new Book
                {
                    ID   = 49,
                    Name = "Ephesians"
                },
                    new Book
                {
                    ID   = 50,
                    Name = "Philippians"
                },
                    new Book
                {
                    ID   = 51,
                    Name = "Colossians"
                },
                    new Book
                {
                    ID   = 52,
                    Name = "1 Thessalonians"
                },
                    new Book
                {
                    ID   = 53,
                    Name = "2 Thessalonians"
                },
                    new Book
                {
                    ID   = 54,
                    Name = "1 Timothy"
                },
                    new Book
                {
                    ID   = 55,
                    Name = "2 Timothy"
                },
                    new Book
                {
                    ID   = 56,
                    Name = "Titus"
                },
                    new Book
                {
                    ID   = 57,
                    Name = "Philemon"
                },
                    new Book
                {
                    ID   = 58,
                    Name = "Hebrews"
                },
                    new Book
                {
                    ID   = 59,
                    Name = "James"
                },
                    new Book
                {
                    ID   = 60,
                    Name = "1 Peter"
                },
                    new Book
                {
                    ID   = 61,
                    Name = "2 Peter"
                },
                    new Book
                {
                    ID   = 62,
                    Name = "1 John"
                },
                    new Book
                {
                    ID   = 63,
                    Name = "2 John"
                },
                    new Book
                {
                    ID   = 64,
                    Name = "3 John"
                },
                    new Book
                {
                    ID   = 65,
                    Name = "Jude"
                },
                    new Book
                {
                    ID   = 66,
                    Name = "Revelation"
                },


                    new Book
                {
                    ID   = 67,
                    Name = "1 Nephi"
                },
                    new Book
                {
                    ID   = 68,
                    Name = "2 Nephi"
                },
                    new Book
                {
                    ID   = 69,
                    Name = "Jacob"
                },
                    new Book
                {
                    ID   = 70,
                    Name = "Enos"
                },
                    new Book
                {
                    ID   = 71,
                    Name = "Jarom"
                },
                    new Book
                {
                    ID   = 72,
                    Name = "Omni"
                },
                    new Book
                {
                    ID   = 73,
                    Name = "Words of Mormon"
                },
                    new Book
                {
                    ID   = 74,
                    Name = "Mosiah"
                },
                    new Book
                {
                    ID   = 75,
                    Name = "Alma"
                },
                    new Book
                {
                    ID   = 76,
                    Name = "Helaman"
                },
                    new Book
                {
                    ID   = 77,
                    Name = "3 Nephi"
                },
                    new Book
                {
                    ID   = 78,
                    Name = "4 Nephi"
                },
                    new Book
                {
                    ID   = 79,
                    Name = "Mormon"
                },
                    new Book
                {
                    ID   = 80,
                    Name = "Ether"
                },
                    new Book
                {
                    ID   = 81,
                    Name = "Moroni"
                },


                    new Book
                {
                    ID   = 82,
                    Name = "Doctrine and Covenants"
                },


                    new Book
                {
                    ID   = 83,
                    Name = "Moses"
                },
                    new Book
                {
                    ID   = 84,
                    Name = "Abraham"
                },
                    new Book
                {
                    ID   = 85,
                    Name = "Joseph Smith History"
                },
                    new Book
                {
                    ID   = 86,
                    Name = "Articles of Faith"
                }

                    );

                context.SaveChanges();
            }
        }
Ejemplo n.º 25
0
 public CreateModel(MyScriptureJournal.Models.MyScriptureJournalContext context)
 {
     _context = context;
 }
Ejemplo n.º 26
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scripture.AddRange(
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-2-12"),
                    BookModels = "1 Nephi",
                    Chapter    = 1,
                    Verse      = 1,
                    Note       = "I, Nephi, having been aborn of goodly parents"
                },
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-1-01"),
                    BookModels = "2 Nephi",
                    Chapter    = 2,
                    Verse      = 1,
                    Note       = "Blessed art thou Lehi, because of the things which thou hast done;"
                },
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-1-02"),
                    BookModels = "Jacob",
                    Chapter    = 2,
                    Verse      = 1,
                    Note       = "Ready to edit"
                },
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-1-03"),
                    BookModels = "Enos",
                    Chapter    = 1,
                    Verse      = 1,
                    Note       = "Ready to edit"
                },
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-1-05"),
                    BookModels = "Jarom",
                    Chapter    = 1,
                    Verse      = 1,
                    Note       = "Ready to edit"
                },
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-1-06"),
                    BookModels = "Omni",
                    Chapter    = 1,
                    Verse      = 1,
                    Note       = "Ready to edit"
                },
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-1-09"),
                    BookModels = "Mosiah",
                    Chapter    = 2,
                    Verse      = 1,
                    Note       = "Ready to edit"
                },
                    new Scripture
                {
                    Date       = DateTime.Parse("2020-1-20"),
                    BookModels = "Alma",
                    Chapter    = 2,
                    Verse      = 1,
                    Note       = "Ready to edit"
                }
                    );
                context.SaveChanges();
            }
        }
Ejemplo n.º 27
0
 public DetailsModel(MyScriptureJournal.Models.MyScriptureJournalContext context)
 {
     _context = context;
 }
Ejemplo n.º 28
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Scripture.Any())
                {
                    return;   // DB has been seeded
                }

                Random rand = new Random();

                context.Scripture.AddRange(
                    new Scripture
                {
                    Book      = "1 Nephi",
                    Chapter   = 3,
                    Verse     = 7,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Quickly I'll obey!"
                },

                    new Scripture
                {
                    Book      = "Mosiah",
                    Chapter   = 3,
                    Verse     = 19,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Yield to the Spirit. The natural man is not good."
                },

                    new Scripture
                {
                    Book      = "D&C",
                    Chapter   = 89,
                    Verse     = 1,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Law of health."
                },

                    new Scripture
                {
                    Book      = "Helaman",
                    Chapter   = 5,
                    Verse     = 12,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Foundation of Christ"
                },

                    new Scripture
                {
                    Book      = "D&C",
                    Chapter   = 4,
                    Verse     = 1,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "A Marvelous Work"
                },

                    new Scripture
                {
                    Book      = "John",
                    Chapter   = 3,
                    Verse     = 16,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "God loves us"
                },

                    new Scripture
                {
                    Book      = "D&C",
                    Chapter   = 1,
                    Verse     = 1,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Hearken"
                },

                    new Scripture
                {
                    Book      = "Hebrews",
                    Chapter   = 5,
                    Verse     = 4,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "No man taketh this honor."
                },

                    new Scripture
                {
                    Book      = "1 John",
                    Chapter   = 5,
                    Verse     = 3,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Keeping commandments shows our love."
                },

                    new Scripture
                {
                    Book      = "Mosiah",
                    Chapter   = 29,
                    Verse     = 26,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Most people will choose the right."
                },

                    new Scripture
                {
                    Book      = "Alma",
                    Chapter   = 5,
                    Verse     = 14,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Image of God in your countenance?"
                },

                    new Scripture
                {
                    Book      = "Helaman",
                    Chapter   = 12,
                    Verse     = 3,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Chastening needed to remember God."
                },

                    new Scripture
                {
                    Book      = "4 Nephi",
                    Chapter   = 1,
                    Verse     = 3,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "All things in common."
                },

                    new Scripture
                {
                    Book      = "D&C",
                    Chapter   = 45,
                    Verse     = 3,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Our advocate with the Father."
                },

                    new Scripture
                {
                    Book      = "D&C",
                    Chapter   = 59,
                    Verse     = 21,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Be grateful!"
                },

                    new Scripture
                {
                    Book      = "D&C",
                    Chapter   = 84,
                    Verse     = 20,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Power of godliness is in the ordinances."
                },

                    new Scripture
                {
                    Book      = "1 Kings",
                    Chapter   = 17,
                    Verse     = 8,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Elijah and the miracle of the barrel of meal and cruse of oil."
                },

                    new Scripture
                {
                    Book      = "Amos",
                    Chapter   = 3,
                    Verse     = 7,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "Prophets will know what the Lord has planned."
                },

                    new Scripture
                {
                    Book      = "Moses",
                    Chapter   = 1,
                    Verse     = 39,
                    EntryDate = DateTime.Now.AddDays(-rand.Next(1, 100)),
                    Thoughts  = "God loves work!"
                }
                    );
                context.SaveChanges();
            }
        }