public override string ParseParameter( string connectionstring_in, eParameter parameter_in ) { switch (parameter_in) { case eParameter.DBName: return(ParseParameter(connectionstring_in, "database")); case eParameter.Server: return(ParseParameter(connectionstring_in, "server")); case eParameter.User: return(ParseParameter(connectionstring_in, "uid")); } throw new Exception( string.Format( "{0}.{1}.ParseParameter(): - error parsing db connectionstring: '{2}'", typeof(DBUtils_connectionString_MySQL).Namespace, typeof(DBUtils_connectionString_MySQL).Name, connectionstring_in ) ); }
public override string ParseParameter( string connectionstring_in, eParameter parameter_in ) { switch (parameter_in) { case eParameter.DBName: return(ParseParameter(connectionstring_in, "database")); case eParameter.Server: return(ParseParameter(connectionstring_in, "server")); case eParameter.User: return(ParseParameter(connectionstring_in, "uid")); } throw new Exception( string.Format( "{0}.{1}.ParseParameter(): - error parsing db connectionstring: 'MySQL|{2}'", typeof(DBUtilities_connectionString_MySQL).Namespace, typeof(DBUtilities_connectionString_MySQL).Name, #if DEBUG connectionstring_in #else "- not available -" #endif ) ); }
/// <summary>Set a decoder parameter</summary> public void setParameter(eParameter parameter, int value) { if (m_decoder == default) { throw new ApplicationException("Uninitialized decoder"); } aacDecoder_SetParam(m_decoder, parameter, value) .check("aacDecoder_SetParam"); }
public static string ParseParameter( string connectionstring_in, eDBServerTypes dbServerTypes_in, eParameter parameter_in ) { switch (parameter_in) { case eParameter.Database: { return ParseParameter(connectionstring_in, dbServerTypes_in, "database"); } case eParameter.Server: { return ParseParameter(connectionstring_in, dbServerTypes_in, "server"); } case eParameter.User: { switch (dbServerTypes_in) { #if PostgreSQL case eDBServerTypes.PostgreSQL: { return ParseParameter(connectionstring_in, dbServerTypes_in, "User ID"); } #endif #if MySQL case eDBServerTypes.MySQL: #endif case eDBServerTypes.SQLServer: { return ParseParameter(connectionstring_in, dbServerTypes_in, "uid"); } } break; } } throw new Exception( string.Format( "{0}.{1}.ParseParameter(): - error parsing db connectionstring: '{2}'", typeof(Connectionstring).Namespace, typeof(Connectionstring).Name, connectionstring_in ) ); }
public override string ParseParameter( string connectionstring_in, eParameter parameter_in ) { switch (parameter_in) { case eParameter.DBName: return ParseParameter(connectionstring_in, "database"); case eParameter.Server: return ParseParameter(connectionstring_in, "server"); case eParameter.User: return ParseParameter(connectionstring_in, "uid"); } throw new Exception( string.Format( "{0}.{1}.ParseParameter(): - error parsing db connectionstring: '{2}'", typeof(DBUtils_connectionString_MySQL).Namespace, typeof(DBUtils_connectionString_MySQL).Name, connectionstring_in ) ); }
static extern eAacStatus aacDecoder_SetParam(IntPtr decoder, eParameter parameter, int value);
public override string ParseParameter( string connectionstring_in, eParameter parameter_in ) { switch (parameter_in) { case eParameter.DBName: return ParseParameter(connectionstring_in, "database"); case eParameter.Server: return ParseParameter(connectionstring_in, "server"); case eParameter.User: return ParseParameter(connectionstring_in, "User ID"); } throw new Exception( string.Format( "{0}.{1}.ParseParameter(): - error parsing db connectionstring: 'PostgreSQL|{2}'", typeof(DBUtils_connectionString_PostgreSQL).Namespace, typeof(DBUtils_connectionString_PostgreSQL).Name, #if DEBUG connectionstring_in #else "- not available -" #endif ) ); }
public abstract string ParseParameter( string connectionstring_in, eParameter parameter_in );