protected virtual DataParameter BuildProcedureParameter(ParameterSchema p) { return(new DataParameter { Name = p.ParameterName, Value = p.SystemType == typeof(string) ? "" : p.SystemType == typeof(DateTime) ? DateTime.Now : DefaultValue.GetValue(p.SystemType), DataType = p.DataType, Size = (int?)p.Size, Direction = p.IsIn ? p.IsOut ? ParameterDirection.InputOutput : ParameterDirection.Input : ParameterDirection.Output }); }
protected virtual DataParameter BuildProcedureParameter(ParameterSchema p) { return(new DataParameter { Name = p.ParameterName, Value = p.SystemType == typeof(string) ? "" : p.SystemType == typeof(DateTime) ? // use fixed value to generate stable baselines new DateTime(2020, 09, 23) : DefaultValue.GetValue(p.SystemType), DataType = p.DataType, DbType = p.SchemaType, Size = (int?)p.Size, Direction = p.IsIn ? p.IsOut ? ParameterDirection.InputOutput : ParameterDirection.Input : ParameterDirection.Output }); }