using System.ComponentModel; using Benner.Tecnologia.Common; using Stimulsoft.Report.Dictionary.Design; namespace Stimulsoft.Report.Dictionary { [TypeConverter(typeof(StiSqlSourceConverter))] public class StiBennerSource : StiSqlSource { public StiBennerSource() : this("", "", "") { } public StiBennerSource(string nameInSource, string name) : this(nameInSource, name, name) { } public StiBennerSource(string nameInSource, string name, string alias) : this(nameInSource, name, alias, string.Empty) { } public StiBennerSource(string nameInSource, string name, string alias, string sqlCommand) : base(nameInSource, name, alias, sqlCommand) { } public StiBennerSource(string nameInSource, string name, string alias, string sqlCommand, bool connectOnStart) : base(nameInSource, name, alias, sqlCommand, connectOnStart) { } public StiBennerSource(string nameInSource, string name, string alias, string sqlCommand, bool connectOnStart, bool reconnectOnEachRow) : base(nameInSource, name, alias, sqlCommand, connectOnStart, reconnectOnEachRow) { } public StiBennerSource(string nameInSource, string name, string alias, string sqlCommand, bool connectOnStart, bool reconnectOnEachRow, int commandTimeout) : base(nameInSource, name, alias, sqlCommand, connectOnStart, reconnectOnEachRow, commandTimeout) { } public void AddParameter(Parameter parameter) { Parameters.Add(new StiDataParameter(parameter.Name, string.Format("\"{0}\"", parameter.Value), (int)parameter.DataType, parameter.Size)); } protected override string DataAdapterType { get { return "Stimulsoft.Report.Dictionary.StiBennerAdapterService"; } } } }