efcore / EFCore.FSharp

Adds F# design-time support to EF Core
MIT License
228 stars 26 forks source link

Helper methods should allow composite keys #132

Closed simon-reynolds closed 2 years ago

simon-reynolds commented 2 years ago

Proposed Changes

Allow specifying an obj [] or obj list of values for a composite key. This fixes #131

Types of changes

Checklist

Further comments

The composite key must be an array, list or seq of type obj as a composite key may be made up of columns of different types. Type inference can be used in this case rather than having to box each element, e.g.

let key : obj[] = [| 1; "2" |]