Ejemplo n.º 1
0
        public override void SetValue(string propertyName, object value)
        {
            switch (propertyName)
            {
            case "ParameterID": this.ParameterID = Setters.Int(value); break;

            case "ProcedureID": this.ProcedureID = Setters.Int(value); break;

            case "Scale": this.Scale = Setters.Byte(value); break;

            case "SqlDbType": this.SqlDbType = Setters.Int(value); break;

            case "Precision": this.Precision = Setters.Byte(value); break;

            case "Size": this.Size = Setters.Int(value); break;

            case "Direction": this.Direction = Setters.Int(value); break;

            case "DefaultValue": this.DefaultValue = Setters.String(value); break;

            case "Name": this.Name = Setters.String(value); break;

            case "SourceColumn": this.SourceColumn = Setters.String(value); break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
 public override void SetValues(object[] values, Dictionary <string, MapPoint> map)
 {
     this.ParameterID  = Setters.Int(values, map["ParameterID"], ParameterID);
     this.ProcedureID  = Setters.Int(values, map["ProcedureID"], ProcedureID);
     this.Scale        = Setters.Byte(values, map["Scale"], Scale);
     this.SqlDbType    = Setters.Int(values, map["SqlDbType"], SqlDbType);
     this.Precision    = Setters.Byte(values, map["Precision"], Precision);
     this.Size         = Setters.Int(values, map["Size"], Size);
     this.Direction    = Setters.Int(values, map["Direction"], Direction);
     this.DefaultValue = Setters.String(values, map["DefaultValue"], DefaultValue);
     this.Name         = Setters.String(values, map["Name"], Name);
     this.SourceColumn = Setters.String(values, map["SourceColumn"], SourceColumn);
 }