Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateIndexColumn"/> class.
 /// </summary>
 /// <param name="columnName">Name of the column.</param>
 /// <param name="type">The index type.</param>
 public CreateIndexColumn(
     string columnName,
     CreateIndexColumnType type)
 {
     this.columns = Collections.SingletonList<Expression>(Expressions.Property(columnName));
     this.indexType = type.GetName();
 }
Пример #2
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="columnName">colum name</param>
 /// <param name="type">index type</param>
 public CreateIndexColumn(string columnName, CreateIndexColumnType type)
 {
     ColumnName      = columnName;
     IndexColumnType = type;
 }