Skip to content

Clean up handling of multiple columns  #74

@jagregory

Description

@jagregory

If the user defined a mapping as follows:

HasMany(x => x.Children)
  .KeyColumns.Add("one") .Unique() .KeyColumns.Add("two");

Then the behaviour is to have two column mappings created, each with the unique set to true. This is somewhat counter-intuitive. It would be better to handle multiple columns with something like

.KeyColumns.Add("name", c => { optional column mapping });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions