當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。