コード例 #1
0
            static void Main(string[] args)
            {
                business b = new business();

                foreach (employee e in b.emp())
                {
                    Console.WriteLine(e.Id + "\t" + e.Name + "\t" + e.Salary);
                }
            }
コード例 #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);
            }
        }
コード例 #3
0
        static void Main(string[] args)
        {
            business b = new business();

            foreach (employee e in b.emp())
            {
                Console.WriteLine(e.Id + "\t" + e.Name + "\t" + e.Salary);
            }
            Console.WriteLine("-------------------------------------------------------");
            // b.insorup(new employee() { Id = 5, Name = "shit", Salary = 70000 });
            Console.WriteLine("max salary is " + b.maxsal());
            Console.WriteLine("no of employees are " + b.noemp());
        }
コード例 #4
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");
        }