Exemplo n.º 1
0
        public static SharedFileHistory GetHistoryFile(int historyFileId)
        {
            SharedFileHistory historyFile = null;

            using (IDataReader reader = DBSharedFiles.GetHistoryFile(historyFileId))
            {
                if (reader.Read())
                {
                    historyFile = new SharedFileHistory();
                    historyFile.FriendlyName   = reader["FriendlyName"].ToString();
                    historyFile.ServerFileName = reader["ServerFileName"].ToString();
                }
            }

            return(historyFile);
        }
Exemplo n.º 2
0
        public static SharedFileHistory GetHistoryFile(int historyFileId)
        {
            SharedFileHistory historyFile = null;
            using (IDataReader reader = DBSharedFiles.GetHistoryFile(historyFileId))
            {
                if (reader.Read())
                {
                    historyFile = new SharedFileHistory();
                    historyFile.FriendlyName = reader["FriendlyName"].ToString();
                    historyFile.ServerFileName = reader["ServerFileName"].ToString();

                }
            }

            return historyFile;
        }