Example #1
0
 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]);
     }
 }
Example #2
0
 public virtual DBSchema GetSchema()
 {
     return(DecoratedDAC.GetSchema());
 }