Exemplo n.º 1
0
        internal BdcLobSysInst GetLobSystemInstanceByName(string name)
        {
#if SP12
            return(ApplicationRegistry.GetLobSystemInstanceByName(name));
#else
            if (bdcCat == null)
            {
                if (bdcService == null)
                {
                    bdcService = new BdcService();
                }
                bdcCat = bdcService.GetDatabaseBackedMetadataCatalog(SPServiceContext.Current);
            }
            foreach (KeyValuePair <string, BdcLobSysInst> kvp in GetLobSystemInstances())
            {
                if ((kvp.Value != null) && (kvp.Value.Name == name))
                {
                    return(kvp.Value);
                }
            }
            return(null);
#endif
        }
 internal LobSystemInstance GetLobSystemInstanceByName(string name)
 {
     return(ApplicationRegistry.GetLobSystemInstanceByName(name));
 }