Example #1
0
        static void Main(string[] args)
        {
            var exampleToRun = ExamplesEnumeration.GetCharactersFromDb;

            switch (exampleToRun)
            {
            case ExamplesEnumeration.AddCharactersToDb:
                AddData.AddCharactersToDb();
                break;

            case ExamplesEnumeration.GetCharactersFromDb:
                GetData.GetCharactersFromDb();
                break;

            case ExamplesEnumeration.UpdateCharacter:
                Update.UpdateCharacter();
                break;

            case ExamplesEnumeration.DeleteCharacter:
                Delete.DeleteCharacter();
                break;
            }

            Console.Read();
        }