public T Single(Func<T, bool> exp) { return GetTable.SingleOrDefault(exp); }
public partial class City : DAL.City { public string StateName { get { return this.StateZipCode.Name; } } }
DAL.BO.City city = unitOfWork.CityRepository.Single(a => a.CityID == Convert.ToInt16(empid));
DAL.City
DAL.BO.City
class DAL { //properties and methods partial class BO { //properties and methods partial class City { //properties and methods } } }
namespace DAL.BO;partial class City {/* ... */}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)