コード例 #1
0
 protected override void OnColumnComboBoxValueChanged(Property column)
 {
     ((PropertyMapping)DataContext).Column = column;
     Column = column;
 }
コード例 #2
0
ファイル: SSDLConverter.cs プロジェクト: Netring/SharpDevelop
        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;
        }
コード例 #3
0
 protected abstract void OnColumnComboBoxValueChanged(Property column);