public static DBSchema GetSchemaCached(this IDAC dac) { using (_schemaCache.EnterWriteScope()) { var connectionString = dac.ConnectionString; if (!_schemaCache.ContainsKey(connectionString)) { _schemaCache[connectionString] = dac.GetSchema(); } return(_schemaCache[connectionString]); } }
public virtual DBSchema GetSchema() { return(DecoratedDAC.GetSchema()); }