using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Threading.Tasks; using System.Data.Sql; using System.Data.SqlClient; using DataAccess; namespace Employee.class { class Employee { DataOperation DataProcessor = new DataOperation(); private static Employee objEmployee = null; const string SP_Get_Employee= "Get_Employee"; private Employee() { } public static Township GetEmployee() { if (Employee.objEmployee == null) return Employee.objEmloyee = new Employee(); else return Employee.objEmployee; } public DataTable GetAllEmployee() { DataTable dt = this.DataProcessor.GetDataTable(Employee.SP_Get_Employee); return dt; } } }
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Threading.Tasks;using System.Data.Sql;using System.Data.SqlClient;using DataAccess;namespace Employee.class{ class Employee { DataOperation DataProcessor = new DataOperation(); private static Employee objEmployee = null; const string SP_Get_Employee= "Get_Employee"; private Employee() { } public static Township GetEmployee() { if (Employee.objEmployee == null) return Employee.objEmloyee = new Employee(); else return Employee.objEmployee; } public DataTable GetAllEmployee() { DataTable dt = this.DataProcessor.GetDataTable(Employee.SP_Get_Employee); return dt; } }}