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

                context.Scripture.AddRange(
                    new Scripture
                {
                    StandardWorks = "Old Testament",
                    DateAdded     = DateTime.Parse("1985-5-20"),
                    Book          = "Genesis",
                    Chapter       = 39,
                    Verse         = 9,
                },

                    new Scripture
                {
                    StandardWorks = "New Testament",
                    DateAdded     = DateTime.Parse("1984-3-13"),
                    Book          = "John",
                    Chapter       = 3,
                    Verse         = 5
                },

                    new Scripture
                {
                    StandardWorks = "Book of Mormon",
                    DateAdded     = DateTime.Parse("1989-2-12"),
                    Book          = "Helamen",
                    Chapter       = 5,
                    Verse         = 12
                },

                    new Scripture
                {
                    StandardWorks = "Doctrine & Covenants",
                    DateAdded     = DateTime.Parse("1986-2-23"),
                    Book          = "Section",
                    Chapter       = 76
                },

                    new Scripture
                {
                    StandardWorks = "Pearl of Great Price",
                    DateAdded     = DateTime.Parse("1959-4-15"),
                    Book          = "Moses",
                    Chapter       = 1,
                    Verse         = 39
                }
                    );
                context.SaveChanges();
            }
        }
Example #2
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      = "Book of Mormon",
                    EntryDate = DateTime.Now,
                    Reference = "1 Nephi 3:7",
                    Scripture = "And it came to pass that I, Nephi, said unto my father: I will go and do the things which the Lord hath commanded, for I know that the Lord giveth no commandments unto the children of men, save he shall prepare a way for them that they may accomplish the thing which he commandeth them.",
                    Notes     = "I will go and do"
                }
                    );
                context.SaveChanges();
            }
        }
Example #3
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Books.Any())
                {
                    return;   // DB has been seeded
                }

                context.Books.AddRange(
                    new Books
                {
                    ID   = 1,
                    Name = "Genesis"
                },
                    new Books
                {
                    ID   = 2,
                    Name = "Exodus"
                },
                    new Books
                {
                    ID   = 3,
                    Name = "Leviticus"
                },
                    new Books
                {
                    ID   = 4,
                    Name = "Numbers"
                },
                    new Books
                {
                    ID   = 5,
                    Name = "Deuteronomy"
                },
                    new Books
                {
                    ID   = 6,
                    Name = "Joshua"
                },
                    new Books
                {
                    ID   = 7,
                    Name = "Judges"
                },
                    new Books
                {
                    ID   = 8,
                    Name = "Ruth"
                }


                    //Add a bunch more later

                    );
                context.SaveChanges();
            }
        }
Example #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
                {
                    Book        = "1 Nephi",
                    DateCreated = DateTime.Parse("1989-2-12"),
                    Chapter     = "3",
                    Verse       = "7",
                    Notes       = "Sure is a nice scripture."
                }
                    );
                context.SaveChanges();
            }
        }
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using var context = new MyScriptureJournalContext(
                      serviceProvider.GetRequiredService <
                          DbContextOptions <MyScriptureJournalContext> >());

            //Look for any scriptures.
            if (context.Scripture.Any())
            {
                return;
            }

            context.Scripture.AddRange(

                new Scripture {
                Book      = "3 Nephi",
                Chapter   = 11,
                Verse     = "33",
                Notes     = "",
                TodayDate = DateTime.Parse("5/27/2020")
            },
                new Scripture {
                Book      = "1 Nephi",
                Chapter   = 3,
                Verse     = "7",
                Notes     = "Go and Do as the Lord commands.",
                TodayDate = DateTime.Parse("5/27/2020")
            }
                );
            context.SaveChanges();
        }
Example #6
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
                {
                    Canon       = "New Testament",
                    Book        = "Mathew",
                    Chapter     = 4,
                    Verses      = "17-25",
                    Notes       = "Feeding the poor and clothing the naked",
                    CreatedDate = DateTime.Parse("2020-11-23"),
                },
                    new Scripture
                {
                    Canon       = "Old Testament",
                    Book        = "Genesis",
                    Chapter     = 40,
                    Verses      = "1-30",
                    Notes       = "In the beginning, when God created the universe",
                    CreatedDate = DateTime.Parse("2020-11-24"),
                }
                    );
                context.SaveChanges();
            }
        }
Example #7
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  = "Nephi",
                    DateAdded = DateTime.Parse("1989-2-12"),
                    Chapter   = 5,
                    Verse     = 8
                },

                    new Book
                {
                    BookName  = "Nephi 2",
                    DateAdded = DateTime.Parse("1989-2-12"),
                    Chapter   = 3,
                    Verse     = 12
                }
                    );
                context.SaveChanges();
            }
        }
Example #8
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
                {
                    Book      = "Alma",
                    Chapter   = 1,
                    Verse     = 3,
                    Note      = "This is a scripture",
                    DateAdded = DateTime.Parse("1989-2-12")
                }
                    );
                context.SaveChanges();
            }
        }
Example #9
0
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <DbContextOptions <MyScriptureJournalContext> >()))
            {
                if (context.Books.Any())
                {
                    return;
                }

                string[] file = File.ReadLines(@"ListOfScriptures.txt").ToArray();

                int i;
                for (i = 0; i < file.Length; i++)
                {
                    context.Books.AddRange(
                        new Books
                    {
                        Name = file[i]
                    });
                }

                context.SaveChanges();
            }
        }
Example #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    = 1,
                    LineNumber = "12",
                    Verse      = "And it came to pass that as he read, he was filled with the Spirit of the Lord",
                    Note       = "Great verse that speaks volumes to me",
                    DateAdded  = DateTime.Parse("2019-2-12")
                },

                    new Scripture
                {
                    Book       = "Alma",
                    Chapter    = 32,
                    LineNumber = "2",
                    Verse      = @"And it came to pass that after much labor among them, they began to have success among the poor class of people;
                                 for behold, they were cast out of the synagogues because of the coarseness of their apparel",
                    Note       = "This verse is a great reminder",
                    DateAdded  = DateTime.Parse("2007-6-22")
                },

                    new Scripture
                {
                    Book       = "Proverbs",
                    Chapter    = 18,
                    LineNumber = "13",
                    Verse      = "To answer before listening — that is folly and shame.",
                    Note       = @"We have two ears and one mouth for a reason. It’s always best to listen first in any situation and speak last, 
                                 after you’ve had time to consider fully what has been said",
                    DateAdded  = DateTime.Parse("2014-1-01")
                },

                    new Scripture
                {
                    Book       = "Psalm",
                    Chapter    = 37,
                    LineNumber = "23-24",
                    Verse      = "The LORD makes firm the steps of the one who delights in him; though he may stumble, he will not fall, for the LORD upholds him with his hand.",
                    Note       = @"Running your business will challenge you in ways you never considered. There will be days when you stumble, 
                                but God will always be there to catch you and lift you back up.",
                    DateAdded  = DateTime.Parse("2018-12-31")
                }
                    );
                context.SaveChanges();
            }
        }
Example #11
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",
                    CreatedDate = DateTime.Parse("2020-6-3"),
                    Chapter     = "1",
                    Verse       = "1",
                    Notes       = "Having been born of goodly parents."
                },

                    new Scripture
                {
                    Book        = "2 Nephi",
                    CreatedDate = DateTime.Parse("2020-6-3"),
                    Chapter     = "2",
                    Verse       = "1",
                    Notes       = "Afflictions will be to our gain."
                },

                    new Scripture
                {
                    Book        = "Mosiah",
                    CreatedDate = DateTime.Parse("2020-6-3"),
                    Chapter     = "5",
                    Verse       = "2",
                    Notes       = "Mighty change of heart."
                },

                    new Scripture
                {
                    Book        = "Alma",
                    CreatedDate = DateTime.Parse("2020-6-3"),
                    Chapter     = "7",
                    Verse       = "11-12",
                    Notes       = "The Savior will take upon himself our infirmities so as to know how to succor us."
                },

                    new Scripture
                {
                    Book = "Helaman"
                }

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

                context.ScriptureJournalEntry.AddRange(
                    new ScriptureJournalEntry
                {
                    Date    = DateTime.Now,
                    Book    = "1 Nephi",
                    Chapter = "1",
                    Verse   = "1",
                    Note    = "Despite having many afflictions in his life, Nephi feels blessed and grateful"
                },
                    new ScriptureJournalEntry
                {
                    Date    = DateTime.Now,
                    Book    = "John",
                    Chapter = "3",
                    Verse   = "16",
                    Note    = "For God so loved the world... a classic"
                },
                    new ScriptureJournalEntry
                {
                    Date    = DateTime.Now,
                    Book    = "James",
                    Chapter = "1",
                    Verse   = "5",
                    Note    = "The passage of scripture that moved Joseph to act"
                },
                    new ScriptureJournalEntry
                {
                    Date    = DateTime.Now,
                    Book    = "D&C",
                    Chapter = "6",
                    Verse   = "36",
                    Note    = "This apparent command feels more like a peaceful assurance that we need not doubt nor fear"
                },
                    new ScriptureJournalEntry
                {
                    Date    = DateTime.Now,
                    Book    = "James",
                    Chapter = "2",
                    Verse   = "17",
                    Note    = "This verse and the next show an interesting relationship between faith and works. It's really not possible to have one without the other if you have knowledge of all God wants you to do."
                }
                    );
                context.SaveChanges();
            }
        }
Example #13
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     = "#obedience #obey",
                    AddedDate = DateTime.Parse("2020-2-05"),
                },
                    new Scripture
                {
                    Book      = "2 Nephi",
                    Chapter   = 2,
                    Verse     = 25,
                    Notes     = "#joy",
                    AddedDate = DateTime.Parse("2020-2-04"),
                },
                    new Scripture
                {
                    Book      = "Mosiah",
                    Chapter   = 2,
                    Verse     = 32,
                    Notes     = "#obedience #obey",
                    AddedDate = DateTime.Parse("2020-2-03"),
                },
                    new Scripture
                {
                    Book      = "Genesis",
                    Chapter   = 2,
                    Verse     = 16,
                    Notes     = "#agency #choice",
                    AddedDate = DateTime.Parse("2020-2-02"),
                },
                    new Scripture
                {
                    Book      = "2 Nephi",
                    Chapter   = 2,
                    Verse     = 27,
                    Notes     = "#agency #free",
                    AddedDate = DateTime.Parse("2020-2-01"),
                }
                    );
                context.SaveChanges();
            }
        }
Example #14
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     = "Faith",
                    EntryDate = DateTime.Parse("2019-2-12"),
                    Book      = "Alma",
                    Chapters  = "13",
                    Verses    = "7",
                    Notes     = "This is a great book"
                },

                    new JournalEntry
                {
                    Title     = "Hope",
                    EntryDate = DateTime.Parse("2019-3-13"),
                    Book      = "1 Nephi",
                    Chapters  = "13",
                    Verses    = "7",
                    Notes     = "This is a great book"
                },

                    new JournalEntry
                {
                    Title     = "Charity",
                    EntryDate = DateTime.Parse("2019-2-23"),
                    Book      = "2 Nephi",
                    Chapters  = "13",
                    Verses    = "7",
                    Notes     = "This is a great book"
                },

                    new JournalEntry
                {
                    Title     = "Love",
                    EntryDate = DateTime.Parse("2019-4-15"),
                    Book      = "Moroni",
                    Chapters  = "13",
                    Verses    = "7",
                    Notes     = "This is a great book"
                }
                    );
                context.SaveChanges();
            }
        }
        public static void Initialize(IServiceProvider serviceProvider)
        {
            using (var context = new MyScriptureJournalContext(
                       serviceProvider.GetRequiredService <
                           DbContextOptions <MyScriptureJournalContext> >()))
            {
                // Look for any movies.
                if (context.Scriptures.Any())
                {
                    return;   // DB has been seeded
                }

                context.Scriptures.AddRange(
                    new Scripture
                {
                    Title     = "The Book fo Nephi",
                    Book      = "1ST Nephi",
                    Chapters  = 3,
                    Verses    = 1 - 5,
                    Note      = "Touched My Heart",
                    DateAdded = DateTime.Parse("1989-2-12"),
                },

                    new Scripture
                {
                    Title     = "The Book fo Nephi",
                    Book      = "1ST Nephi",
                    Chapters  = 3,
                    Verses    = 1 - 5,
                    Note      = "Touched My Heart",
                    DateAdded = DateTime.Parse("1989-2-12"),
                },

                    new Scripture
                {
                    Title     = "The Book fo Nephi",
                    Book      = "1ST Nephi",
                    Chapters  = 3,
                    Verses    = 1 - 5,
                    Note      = "Touched My Heart",
                    DateAdded = DateTime.Parse("1989-2-12"),
                },

                    new Scripture
                {
                    Title     = "The Book fo Nephi",
                    Book      = "1ST Nephi",
                    Chapters  = 3,
                    Verses    = 1 - 5,
                    Note      = "Touched My Heart",
                    DateAdded = DateTime.Parse("1989-2-12"),
                }
                    );
                context.SaveChanges();
            }
        }
Example #16
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
                {
                    Title     = "Book of Nephi",
                    DateAdded = DateTime.Parse("1989-2-12"),
                    Book      = "1stNephi",
                    Chapter   = 5,
                    Verses    = 1 - 6,
                    Note      = "It tought my heart."
                },

                    new Scripture
                {
                    Title     = "Book of Alma",
                    DateAdded = DateTime.Parse("1989-2-12"),
                    Book      = "2nd Nephi",
                    Chapter   = 5,
                    Verses    = 1 - 6,
                    Note      = "I could liken the scripture"
                },

                    new Scripture
                {
                    Title     = "Misiah",
                    DateAdded = DateTime.Parse("1989-2-12"),
                    Book      = "3rd Nephi",
                    Chapter   = 5,
                    Verses    = 1 - 6,
                    Note      = "Really Inspiring."
                },

                    new Scripture
                {
                    Title     = "Book of Nephi",
                    DateAdded = DateTime.Parse("1989-2-12"),
                    Book      = "4th Nephi",
                    Chapter   = 5,
                    Verses    = 1 - 6,
                    Note      = "I could liken the scripture"
                }
                    );
                context.SaveChanges();
            }
        }
Example #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
                {
                    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();
            }
        }
Example #18
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();
            }
        }
Example #19
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();
            }
        }
        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();
            }
        }
Example #21
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();
            }
        }
        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();
            }
        }
Example #23
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();
            }
        }
Example #24
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();
            }
        }
        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      = "Alma",
                    Chapter   = 35,
                    Verse     = 37,
                    Note      = "Learn wisdom in your youth",
                    EntryDate = DateTime.Parse("2019-31-10")
                },

                    new Scripture
                {
                    Book      = "Mormon",
                    Chapter   = 10,
                    Verse     = 15,
                    Note      = "Mormon words to his son",
                    EntryDate = DateTime.Parse("2019-30-10")
                },

                    new Scripture
                {
                    Book      = "Alma",
                    Chapter   = 45,
                    Verse     = 37,
                    Note      = "young man warriors",
                    EntryDate = DateTime.Parse("2019-27-10")
                },

                    new Scripture
                {
                    Book      = "2 Nephi",
                    Chapter   = 11,
                    Verse     = 15,
                    Note      = "I don't remeber the words",
                    EntryDate = DateTime.Parse("2019-13-10")
                }
                    );
                context.SaveChanges();
            }
        }
Example #26
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();
            }
        }
Example #27
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();
            }
        }
Example #28
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();
            }
        }
        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();
            }
        }