Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 public TfsDataParameter(TfsParameter parameter)
     : base(parameter, 0, 0, 0)
 {
 }