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

21 lines
538 B
C#

using FreeSql.DataAnnotations;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace FreeSql.DatabaseModel
{
public class DbIndexInfo
{
public string Name { get; set; }
public List<DbIndexColumnInfo> Columns { get; } = new List<DbIndexColumnInfo>();
public bool IsUnique { get; set; }
}
public class DbIndexColumnInfo
{
public DbColumnInfo Column { get; set; }
public bool IsDesc { get; set; }
}
}