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); }
public static IManage.IManDatabase Db(ImDbType imDbType, bool newSession = false) { IManage.IManDatabase iMDb = UsrSession(newSession).Databases.ItemByName(imDbType.ToString()); return iMDb; }
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; }
public static IManage.IManDatabase Db(ImDbType imDbType, bool newSession = false) { IManage.IManDatabase iMDb = UsrSession(newSession).Databases.ItemByName(imDbType.ToString()); return(iMDb); }