/// <summary> /// Gets a record of type <typeparamref name="T"/> from its corresponding database by its ID. This is equivalent /// to a primary key lookup. /// </summary> /// <param name="id">The primary key ID.</param> /// <typeparam name="T">The type of record to retrieve.</typeparam> /// <returns>A record of type <typeparamref name="T"/></returns> public T GetRecordByID <T>(int id) where T : DBCRecord, new() { DBC <T> database = GetDatabase <T>(); return(database.GetRecordByID(id)); }