FreeSql/FreeSql/Internal/Model/IndexInfo.cs
28810 78fded3f8e - 增加 IndexAttribute 特性,自动迁移索引,以及对应的 FluentApi 方法;
- 移除 ColumnAttribute.Unique 属性设置,改为 IndexAttribute 特性设置唯一键;
2019-10-03 04:31:04 +08:00

21 lines
499 B
C#

using FreeSql.DataAnnotations;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace FreeSql.Internal.Model
{
public class IndexInfo
{
public string Name { get; set; }
public IndexColumnInfo[] Columns { get; set; }
public bool IsUnique { get; set; }
}
public class IndexColumnInfo
{
public ColumnInfo Column { get; set; }
public bool IsDesc { get; set; }
}
}