protected DBColumnMapping(string destLabel, int destColumnOffset, string destColumnName, object defaultValue, ColumnMappingOption option) { DestLabel = destLabel; DestColumnOffset = destColumnOffset; DestColumnName = destColumnName; DefaultValue = defaultValue; this.Option = option; }
private void fillComboBoxItem(RepositoryItemComboBox editor, ColumnMappingOption option) { editor.Items.Clear(); //editor.SmallImages = _imageListRetriever.AllImages16x16; editor.NullText = Captions.Importer.NoneEditorNullText; editor.Items.Add(new ComboBoxItem(option.Description) /* * { * Description = option.Label, * ImageIndex = option.IconIndex * }*/); }
private RepositoryItemComboBox nameRepository(ColumnMappingDTO model) { var entry = new ColumnMappingOption() { Label = model.MappingName, IconIndex = model.Icon, Description = model.MappingName }; var repo = new UxRepositoryItemComboBox(columnMappingGridView) { AllowNullInput = DefaultBoolean.True }; fillComboBoxItem ( repo, entry ); return(repo); }
/// <summary> /// Constructs a mapping from the tagged property to a db column by column name in the db table /// </summary> /// <param name="destLabel">The label to help categorize all column mappings</param> /// <param name="destColumnName">the column name in the db table</param> /// <param name="defaultValue">default value for the property if the propety is null</param> /// <param name="option">The option, or priority of this mapping</param> public DBColumnMapping(string destLabel, string destColumnName, object defaultValue = null, ColumnMappingOption option = ColumnMappingOption.Mandatory) : this(destLabel, -1, destColumnName, defaultValue, option) { }
/// <summary> /// Constructs a mapping from the tagged property to a db column by column offset in the db table /// </summary> /// <param name="destLabel">The label to help categorize all column mappings</param> /// <param name="destColumnOffset">the column offset in the db table</param> /// <param name="defaultValue">default value for the property if the propety is null</param> /// <param name="option">The option, or priority of this mapping</param> public DBColumnMapping(string destLabel, int destColumnOffset, object defaultValue = null, ColumnMappingOption option = ColumnMappingOption.Mandatory) : this(destLabel, destColumnOffset, null, defaultValue, option) { }