当前位置: 首页>>代码示例>>C#>>正文


C# ColumnProperty类代码示例

本文整理汇总了C#中ColumnProperty的典型用法代码示例。如果您正苦于以下问题:C# ColumnProperty类的具体用法?C# ColumnProperty怎么用?C# ColumnProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ColumnProperty类属于命名空间,在下文中一共展示了ColumnProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Column

 public Column(string name, DbType type, ColumnProperty property, string collation)
 {
     Name = name;
     Type = type;
     ColumnProperty = property;
     Collation = collation;
 }
开发者ID:mmsommer,项目名称:OGD.Database.Migrator.Net,代码行数:7,代码来源:Column.cs

示例2: Column

 public Column(string name, DbType type, int size, ColumnProperty property)
 {
     Name = name;
     Type = type;
     Size = size;
     ColumnProperty = property;
 }
开发者ID:kayone,项目名称:Migrator.NET,代码行数:7,代码来源:Column.cs

示例3: GetColumnNames

        /// <summary>
        /// Method to get the column names 
        /// </summary>
        /// <param name="mapItemCollection"></param>
        /// <param name="propertyToFetch"></param>
        /// <returns></returns>
        public string GetColumnNames(ColumnMapItemCollection mapItemCollection, ColumnProperty propertyToFetch)
        {
            if (mapItemCollection == null) { throw new ArgumentNullException("mapItemCollection"); }
            if (mapItemCollection.Count <= 0) { throw new ArgumentOutOfRangeException("mapItemCollection"); }

            StringBuilder builder = new StringBuilder();
            switch (propertyToFetch)
            {
                case ColumnProperty.Source:
                    foreach (ColumnMapItem columnMapItem in mapItemCollection)
                    {
                        builder.AppendFormat("{0},", columnMapItem.SourceColumn);
                    }
                    break;
                case ColumnProperty.Destination:
                    foreach (ColumnMapItem columnMapItem in mapItemCollection)
                    {
                        builder.AppendFormat("{0},", columnMapItem.DestinationColumn);
                    }
                    break;
                default:
                    builder.Append(",");
                    break;
            }
            return builder.ToString().Substring(0, builder.Length - 1);
        }
开发者ID:dillyhk,项目名称:mysqlbulkcopy,代码行数:32,代码来源:CommonFunctions.cs

示例4: Column

        public Column(string name, ColumnType type, ColumnProperty property = ColumnProperty.None, object defaultValue = null)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException("name");
            }

            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            Name = name;
            ColumnType = type;
            ColumnProperty = property;
            DefaultValue = defaultValue;
        }
开发者ID:svn2github,项目名称:ecm7migrator,代码行数:17,代码来源:Column.cs

示例5: RegisterProperty

		public void RegisterProperty(ColumnProperty property, string sql)
		{
			if (! propertyMap.ContainsKey(property))
			{
				propertyMap.Add(property, sql);
			}
			propertyMap[property] = sql;
		}
开发者ID:modulexcite,项目名称:Migrator.NET,代码行数:8,代码来源:Dialect.cs

示例6: IsSelected

		public static bool IsSelected(this ColumnProperty property, ColumnProperty test)
		{
			return (property & test) == test;
		}
开发者ID:tgmayfield,项目名称:fluentmigrator.legacy.migratordotnet,代码行数:4,代码来源:ColumnPropertyExtensions.cs

示例7: HasProperty

 /// <summary>
 /// Проверяет, выбрано ли заданное свойство
 /// </summary>
 /// <param name="source"></param>
 /// <param name="comparison"></param>
 /// <returns></returns>
 public static bool HasProperty(this ColumnProperty source, ColumnProperty comparison)
 {
     return (source & comparison) == comparison;
 }
开发者ID:svn2github,项目名称:ecm7migrator,代码行数:10,代码来源:ColumnProperty.cs

示例8: RemoveProperty

 /// <summary>
 /// Removes column property.
 /// </summary>
 /// <param name="property">The column property.</param>
 /// <returns>column instance.</returns>
 public Column RemoveProperty(ColumnProperty property)
 {
     ColumnProperties &= ~property;
     return this;
 }
开发者ID:coreframework,项目名称:Core-Framework,代码行数:10,代码来源:Column.cs

示例9: Clear

 public static ColumnProperty Clear(this ColumnProperty fruits, ColumnProperty flags)
 {
     return fruits & (~flags);
 }
开发者ID:CALUMO,项目名称:Migrator.NET,代码行数:4,代码来源:ColumnProperty.cs

示例10: WithProperty

		public SchemaBuilder WithProperty(ColumnProperty columnProperty)
		{
			_currentColumn.ColumnProperty = columnProperty;

			return this;
		}
开发者ID:jango2015,项目名称:Migrator.NET,代码行数:6,代码来源:SchemaBuilder.cs

示例11: PropertySelected

 public static bool PropertySelected(ColumnProperty source, ColumnProperty comparison)
 {
     return (source & comparison) == comparison;
 }
开发者ID:jango2015,项目名称:Migrator.NET,代码行数:4,代码来源:ColumnPropertiesMapper.cs

示例12: AddColumn

 public void AddColumn(string table, string column, DbType type, ColumnProperty property)
 {
     _sqlServerTransformationProvider.AddColumn(table, column, type, property);
 }
开发者ID:scottccoates,项目名称:MigratorNeo4j,代码行数:4,代码来源:CliqFlipTransformationProvider.cs

示例13: AddColumn

        /// <summary>
        /// Add a new column to an existing table.
        /// </summary>
        /// <param name="table">Table to which to add the column</param>
        /// <param name="column">Column name</param>
        /// <param name="type">Date type of the column</param>
        /// <param name="size">Max length of the column</param>
        /// <param name="property">Properties of the column, see <see cref="ColumnProperty">ColumnProperty</see>,</param>
        /// <param name="defaultValue">Default value</param>
        public virtual void AddColumn(string table, string column, DbType type, int size, ColumnProperty property,
            object defaultValue)
        {
            ColumnPropertiesMapper mapper =
                _dialect.GetAndMapColumnProperties(new Column(column, type, size, property, defaultValue));

            AddColumn(table, mapper.ColumnSql);
        }
开发者ID:juanplopes,项目名称:simple,代码行数:17,代码来源:TransformationProvider.cs

示例14: Match

 public static bool Match(this ColumnProperty prop, ColumnProperty compare)
 {
     return (prop & compare) == compare;
 }
开发者ID:geofflane,项目名称:zorched-migrations,代码行数:4,代码来源:ColumnProperty.cs

示例15: AddProperty

 private void AddProperty(ColumnProperty property, bool value)
 {
     if (value)
     {
         AddProperty(property);
     }
 }
开发者ID:coreframework,项目名称:Core-Framework,代码行数:7,代码来源:Column.cs


注:本文中的ColumnProperty类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。