Fix compile issue caused by IndexMetaData.Entry and ForeignKeyMetaData.Entry