Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var data = new MySQLData() {

                Age = 55,

                Name = "Axel Pressbutton",

                Other = "Cyborg"
            };

            var controller = new SQLDataController(data);

            var response = controller.Save();

            if (response)
            {
                Console.WriteLine("Everyone's happy.");
            }
            else
            {
                Console.WriteLine("No one's happy.");
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var data = new MySQLData()
            {
                Age = 55,

                Name = "Axel Pressbutton",

                Other = "Cyborg"
            };

            var controller = new SQLDataController(data);

            var response = controller.Save();

            if (response)
            {
                Console.WriteLine("Everyone's happy.");
            }
            else
            {
                Console.WriteLine("No one's happy.");
            }
        }