void IProvider.DeriveParameters(IDbCommand command) { var tfsCommand = (TfsCommand)command; var contains = TfsDataReaderFactory.Dictionary.TryGetValue(tfsCommand.CommandText, out var info); if (contains) { foreach (var parameter in info.Parameters) { var clone = new TfsParameter(parameter.ParameterName, parameter.Type, parameter.DbType, parameter.Direction, parameter.IsNullable, parameter.DefaultValue); tfsCommand.Parameters.Add(clone); } } }
public TfsDataParameter(TfsParameter parameter) : base(parameter, 0, 0, 0) { }