本文整理汇总了C#中ColumnProperty类的典型用法代码示例。如果您正苦于以下问题:C# ColumnProperty类的具体用法?C# ColumnProperty怎么用?C# ColumnProperty使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ColumnProperty类属于命名空间,在下文中一共展示了ColumnProperty类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: SqlForProperty
public string SqlForProperty(ColumnProperty property)
{
if (propertyMap.ContainsKey(property))
{
return propertyMap[property];
}
return String.Empty;
}
开发者ID:modulexcite,项目名称:Migrator.NET,代码行数:8,代码来源:Dialect.cs
示例17: AddColumn
public void AddColumn(string table, string column, DbType type, int size, ColumnProperty property)
{
// No Op
}
开发者ID:modulexcite,项目名称:Migrator.NET,代码行数:4,代码来源:NoOpTransformationProvider.cs
示例18: AddValueIfSelected
private void AddValueIfSelected(Column column, ColumnProperty property, ICollection<string> vals)
{
if (PropertySelected(column.ColumnProperty, property))
vals.Add(dialect.SqlForProperty(property));
}
开发者ID:jango2015,项目名称:Migrator.NET,代码行数:5,代码来源:ColumnPropertiesMapper.cs
示例19: AddColumn
/// <summary>
/// <see cref="TransformationProvider.AddColumn(string, string, DbType, int, ColumnProperty, object)">
/// AddColumn(string, string, Type, int, ColumnProperty, object)
/// </see>
/// </summary>
public virtual void AddColumn(string table, string column, DbType type, int size, ColumnProperty property)
{
AddColumn(table, column, type, size, property, null);
}
开发者ID:asynchrony,项目名称:Migrator.NET,代码行数:9,代码来源:TransformationProvider.cs
示例20: prop_GetColumnTitles
void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
{
if (e.DbName == "<blank>")
{
e.ColumnTitles = new ColumnPropertyCollection();
e.ColumnTitles.Add("检索点");
e.ColumnTitles.Add("数量");
return;
}
// e.ColumnTitles = this.MainForm.GetBrowseColumnNames(e.DbName);
if (e.DbName.IndexOf("@") == -1)
{
e.ColumnTitles = new ColumnPropertyCollection();
ColumnPropertyCollection temp = this.MainForm.GetBrowseColumnProperties(e.DbName);
if (temp != null)
e.ColumnTitles.AddRange(temp); // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件
}
else
{
string strFormat = "";
if (this.m_biblioTable != null)
{
BiblioInfo info = this.m_biblioTable[e.DbName] as BiblioInfo;
if (info != null)
strFormat = info.Format;
}
e.ColumnTitles = new ColumnPropertyCollection();
string strColumnTitles = (string)_browseTitleTable[strFormat];
List<string> titles = StringUtil.SplitList(strColumnTitles, '\t');
foreach (string s in titles)
{
ColumnProperty property = new ColumnProperty(s);
e.ColumnTitles.Add(property);
}
}
if (this.m_bFirstColumnIsKey == true)
e.ColumnTitles.Insert(0, "命中的检索点");
}
开发者ID:renyh1013,项目名称:dp2,代码行数:41,代码来源:BiblioSearchForm.cs
注:本文中的ColumnProperty类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论