Skip to content

关于实体映射,建立表索引,目前名称会重复 #366

Closed
@pigwing

Description

@pigwing

QQ截图20200710120941
目前实体映射的attribute中,Index中的name是固定写死的.当使用FluentApi动态建立分表的时候.存在的情况为:
1_Table和2_Table中索引名称会重复,导致建表失败.能否加入format形式,例如 [Index("{TableName}-uk_phone", "phone", true)] 占位符的形式,在建表的时候,自动建立唯一的索引.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions