Esempio n. 1
0
    static void Main()
    {
        AddProduct example = new AddProduct();
        try
        {
            example.ConnectToDB();

            // Insert new project in the "Projects" table
            int newProjectId = example.InsertProject("Yabulki",
                1, 1, "njqkolko", 12.10m, 10, 1, 10, false);
            Console.WriteLine("Inserted new project. " +
                "ProjectID = {0}", newProjectId);
        }
        finally
        {
            example.DisconnectFromDB();
        }
    }