I have a C # code snippet that looks like this:
[OracleCustomTypeMapping(Constants.DBSchema + ".TAB_VARCHAR2_250")] public class StringTableFactory : TableFactoryTemplate<StringTable> { public override System.Array CreateStatusArray(int length) { return new OracleUdtStatus[length]; } }
Is there a way to change the attribute declaration, so Constants.DBSchema is read from web.config instead of being hardcoded as a constant in the code? If I put ConfigurationManager.appSettings in the attribute declaration, I get the message "The attribute argument must be a constant expression ...".
Thanks.
source share