public override void SetExtentArguments(string arguments) { ExtendParamsCollection extendParams = new ExtendParamsCollection(arguments); if (extendParams ["InnerPager"] != null) { if (extendParams ["InnerPager"].ToLower() == "true") { InnerPager = true; } } if (extendParams ["TimeOut"] != null) { int timeout; if (int.TryParse(extendParams ["TimeOut"], out timeout)) { CommandTimeOut = timeout; } } if (extendParams ["RoundScale"] != null) { byte roundScale; if (byte.TryParse(extendParams ["RoundScale"], out roundScale)) { OracleCommandFactory oracleFactory = _factory as OracleCommandFactory; oracleFactory.SetRoundScale(roundScale); } } }
public override void SetExtentArguments(string arguments) { ExtendParamsCollection extendParams = new ExtendParamsCollection(arguments); if (extendParams["CompatibleSQL92"] != null) { if (extendParams["CompatibleSQL92"].ToLower() == "false") { AccessCommandFactory accessFactory = _factory as AccessCommandFactory; accessFactory.UseAccessWildcards(); } } if (extendParams["TimeOut"] != null) { int timeout; if (int.TryParse(extendParams["TimeOut"], out timeout)) { CommandTimeOut = timeout; } } }
public override void SetExtentArguments(string arguments) { ExtendParamsCollection extendParams = new ExtendParamsCollection(arguments); if (extendParams ["Version"] != null) { int version; if (int.TryParse(extendParams ["Version"], out version)) { if (version == 8) { _factory = new MssqlCommandFactory_2000(this); } else if (version >= 10) { _factory = new MssqlCommandFactory_2008(this); } } } if (extendParams ["InnerPager"] != null) { if (extendParams ["InnerPager"].ToLower() == "true") { InnerPager = true; } } if (extendParams ["TimeOut"] != null) { int timeout; if (int.TryParse(extendParams ["TimeOut"], out timeout)) { CommandTimeOut = timeout; } } }