protected override void OnColumnComboBoxValueChanged(Property column) { ((PropertyMapping)DataContext).Column = column; Column = column; }
private static Property CreateSSDLProperty(IColumn column, EntityType entityType) { Property property = new Property(entityType) { Name = column.Name, IsKey = column.IsPrimaryKey, Nullable = column.IsNullable // FixedLength // Collation // DefaultValue // Unicode }; if (!column.IsUserDefinedDataType) property.Type = column.DataType; else property.Type = column.SystemType; if (column.Length > 0) property.MaxLength = column.Length; //if (column.Precision != 0) // property.Precision = column.Precision; //if (column.Scale != 0) // property.Scale = column.Scale; if (column.IsIdentity) property.StoreGeneratedPattern = StoreGeneratedPattern.Identity; else if (column.IsComputed) property.StoreGeneratedPattern = StoreGeneratedPattern.Computed; return property; }
protected abstract void OnColumnComboBoxValueChanged(Property column);