TeamMentor.CoreLib.TM_Xml_Database_ExtensionMethods_XML_DataSources_TM_Library.tmLibrary C# (CSharp) Method

tmLibrary() public static method

public static tmLibrary ( this tmDatabase, System.Guid libraryId ) : TM_Library
tmDatabase this
libraryId System.Guid
return TM_Library
        public static TM_Library tmLibrary(this TM_Xml_Database tmDatabase, Guid libraryId)
        {
            var tmLibrary = (from library in tmDatabase.tmLibraries()
                             where library.Id == libraryId
                             select library).first();
            //if (tmLibrary.isNull())
            //	"[TM_Xml_Database] couldn't find library with id: {0}".error(libraryId);
            return tmLibrary;
        }

Same methods

TM_Xml_Database_ExtensionMethods_XML_DataSources_TM_Library::tmLibrary ( this tmDatabase, string caption ) : TM_Library
TM_Xml_Database_ExtensionMethods_XML_DataSources_TM_Library