/// <summary> /// Initializes a new instance of the <see cref="EmployeeBoService"/> class. /// </summary> public EmployeeBoService() { //Tips:Here is we cannot use Singleton lifecyle mode because one EF dbcontent make same result per select dataset this.ebo = ServiceFactory.GetInstance<IEmployeeBusinessObject>("NoOLazyloadedAndProxyCreated"); this.contactebo = ServiceFactory.GetInstance<IContactBusinessObject>(); }
/// <summary> /// Initializes a new instance of the <see cref="EmployeeBoService"/> class. /// </summary> public EmployeeBoService() { //Tips:Here is we cannot use Singleton lifecyle mode because one EF dbcontent make same result per select dataset this.ebo = ServiceFactory.GetInstance <IEmployeeBusinessObject>("NoOLazyloadedAndProxyCreated"); this.contactebo = ServiceFactory.GetInstance <IContactBusinessObject>(); }