Although the account has been used for more than two years, it has never been used ., Account has never been used for 2 years
Newbie C # developed a company that has primarily developed mvc using a similar internal system. The customer places an order to record the review process and then goes to the lending system. Other system functions are similar.
Simple three-tier, Singleton mode.
------------------------ Start (simple )--------------------------
Private static ActivitiesDetailMgr _ instance;
Public static ActivitiesDetailMgr GetInstance ()
{
If (_ instance = null)
{
_ Instance = new ActivitiesDetailMgr ();
}
Return _ instance;
}
-------------------------- End ----------------------------------
------------------------ Actual use ---------------------------------
Public IList <ActivityProductDetail> GetDetailsByActId (int actId)
{
Return ActivitiesDetailDAO. GetInstance (). GetDetailsByActId (actId );
}
----------------------------------------------------------------------------