public void SetupSchema(CachedSnapshot snapshot, ObjectDataFormatter objectDataFormatter) { using (s_CreateSnapshotSchema.Auto()) { m_Snapshot = snapshot; formatter = new SnapshotObjectDataFormatter(objectDataFormatter, m_Snapshot); CreateTables(m_Snapshot.CrawledData); } }
public SnapshotObjectDataFormatter(ObjectDataFormatter baseFormatter, CachedSnapshot d) { BaseFormatter = baseFormatter; m_Snapshot = d; foreach (var tr in baseFormatter.m_TypeFormatter) { int i = m_Snapshot.typeDescriptions.typeDescriptionName.FindIndex(x => x == tr.Key); if (i >= 0) { m_TypeFormatter[i] = tr.Value; } } }