示例#1
0
 /// <summary>
 /// Initialize DAO
 /// </summary>
 /// <param name="connexionString">Connection chain</param>
 public static void DAOInitialize(string connexionString)
 {
     _objDaoLogin = DAOLogin.getInstance();
     _objDaoLogin.ConnectionString = connexionString;
     _objDaoTopic = DAOTopic.getInstance();
     _objDaoTopic.ConnectionString = connexionString;
     _objDaoRubric = DAORubric.getInstance();
     _objDaoRubric.ConnectionString = connexionString;
     _objDaoTopicReply = DAOTopicReply.getInstance();
     _objDaoTopicReply.ConnectionString = connexionString;
 }
示例#2
0
 /// <summary>
 /// Uses the method of retrieval of the last sections in db
 /// </summary>
 /// <returns>rubric list</returns>
 public static List <Rubric> GetListRubrics()
 {
     _objDaoRubric = DAORubric.getInstance();
     return(_objDaoRubric.GetListRubric());
 }