Exemple #1
0
 public static RelationsDAO CreateRelationsDAO()
 {
     RelationsDAO _RelationsDao;
     if (null == RelationsDao)
     {
         lock (_lock)
         {
             if (null == RelationsDao)
             {
                 _RelationsDao = new RelationsDAO();
                 RelationsDao = _RelationsDao;
             }
         }
     }
     return RelationsDao;
 }
Exemple #2
0
        public static RelationsDAO CreateRelationsDAO()
        {
            RelationsDAO _RelationsDao;

            if (null == RelationsDao)
            {
                lock (_lock)
                {
                    if (null == RelationsDao)
                    {
                        _RelationsDao = new RelationsDAO();
                        RelationsDao  = _RelationsDao;
                    }
                }
            }
            return(RelationsDao);
        }