Skip to content

order和detail表,如何设置detail的联合主键和自动增长 #23

Closed
@zhusheping

Description

@zhusheping

数据库为Sqlite
1、比如order有Id整形主键,detail表有OrderId 和 Id,如何设置OrderId + Id联合主键

2、实体对象如何定义才会生成表外键。按照导航属性设置后,fsql.CodeFirst.SyncStructure,数据库里面没有外键。

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