Beispiel #1
0
        static void Main()
        {
            var context = new StarWars3Context();

            context.Database.Initialize(true);

            //AddData(context);
        }
Beispiel #2
0
        private static void AddData(StarWars3Context context)
        {
            context.Factories.Add(new Factory(FactoryType.GasFactory)
            {
                Health = 100,
                Level  = 0
            });

            context.SaveChanges();
        }