Ejemplo n.º 1
0
        public static bool CheckDatabases()
        {
            bool result = false;

            try
            {
                using (var entity = new VirtualTFS.DAL.Entities(Define.ENTITYCONNSTRING))
                {
                    result = entity.DatabaseExists();
                }
            }
            catch (SqlException)
            {
                //throw;
            }
            catch (Exception)
            {
                throw;
            }
            return result;
        }
Ejemplo n.º 2
0
        static public bool CheckDatabases()
        {
            bool result = false;

            try
            {
                using (var entity = new VirtualTFS.DAL.Entities(Define.ENTITYCONNSTRING))
                {
                    result = entity.DatabaseExists();
                }
            }
            catch (SqlException)
            {
                //throw;
            }
            catch (Exception)
            {
                throw;
            }
            return(result);
        }