Exemplo n.º 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;
 }
Exemplo n.º 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());
 }