Example #1
0
        static void Main(string[] args)
        {
            business b  = new business();
            employee e1 = (employee)b.search(1);

            Console.WriteLine(e1.Id + "\t" + e1.Name + "\t" + e1.Salary);
            Console.WriteLine("-------------------------------------------------------");
            foreach (employee e in b.search("manu"))
            {
                Console.WriteLine(e.Id + "\t" + e.Name + "\t" + e.Salary);
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            business b  = new business();
            employee e1 = (employee)b.search(1);

            Console.WriteLine(e1.Id + "\t" + e1.Name + "\t" + e1.Salary);
            Console.WriteLine("-------------------------------------------------------");
            foreach (employee e in b.search("manu"))
            {
                Console.WriteLine(e.Id + "\t" + e.Name + "\t" + e.Salary);
            }
            b.insert(new employee()
            {
                Name = "akshay", Salary = 12000
            });
            b.update(1010, "shital");
        }