Exemple #1
0
        public static IMANADMIN.NRTDatabase AdminDb(ImDbType imDbType)
        {
            IMANADMIN.NRTDatabase db = null;

            foreach (IMANADMIN.NRTDatabase item in AdminSession().Databases)
            {
                if (item.Name.Equals(imDbType.ToString(), StringComparison.OrdinalIgnoreCase))
                {
                    return(item);
                }
            }

            return(db);
        }
Exemple #2
0
        public static IManage.IManDatabase Db(ImDbType imDbType, bool newSession = false)
        {
            IManage.IManDatabase iMDb = UsrSession(newSession).Databases.ItemByName(imDbType.ToString());

            return iMDb;
        }
Exemple #3
0
        public static IMANADMIN.NRTDatabase Db(ImDbType imDbType)
        {
            IMANADMIN.NRTDatabase db = null;

            foreach (IMANADMIN.NRTDatabase item in UsrSession().Databases)
            {
                if (item.Name.Equals(imDbType.ToString(), StringComparison.OrdinalIgnoreCase))
                    return item;
            }

            return db;
        }
Exemple #4
0
        public static IManage.IManDatabase Db(ImDbType imDbType, bool newSession = false)
        {
            IManage.IManDatabase iMDb = UsrSession(newSession).Databases.ItemByName(imDbType.ToString());

            return(iMDb);
        }