Exemplo n.º 1
0
        internal static void ClearDatabase()
        {
            var context = new PoliticalContext();

            context.RemoveRange(context.PoliticalParties);
            context.SaveChanges();
        }
Exemplo n.º 2
0
        internal static void RecreateDatabase()
        {
            var context = new PoliticalContext();

            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();
        }
Exemplo n.º 3
0
        internal static string[] GetAllAbbreviatedNamesOrderedByFoundedDate()
        {
            var context = new PoliticalContext();

            throw new NotImplementedException();
        }
Exemplo n.º 4
0
        internal static void AddParty(PoliticalParty party)
        {
            var context = new PoliticalContext();

            throw new NotImplementedException();
        }