internal void SetCache(SchemaObjectCache cache, bool shareTypes) { _shareTypes = shareTypes; _cache = cache; if (shareTypes) { cache.GenerateSchemaGraph(this); } }