\(\overrightarrow{BD}.\overrightarrow{D'C}=\overrightarrow{BD}\left(\overrightarrow{D'D}+\overrightarrow{DC}\right)=\overrightarrow{BD}.\overrightarrow{D'D}+\overrightarrow{BD}.\overrightarrow{DC}\)
\(=\overrightarrow{BD}.\overrightarrow{DC}=-\overrightarrow{DB}.\overrightarrow{DC}=-a\sqrt{2}.a.cos45^0=-a^2\)