Copy and update record expression doesn't work

Viewed 212

I'm trying to copy an entity in a table using LinqPad.

let dc = new TypedDataContext()
let title = "Some title"

let newestUser= dc.UserIDs |> Seq.filter (fun(x)->x.Funktion="SomeFunction") |> Seq.last

let newUser=  {newestUserwith Title= title}

The type 'UserID' does not contain a field 'Title'

But Title is a public field. I'm seeing it in the list by using GetFields()

Has anyone any idea what the reason of that is?

1 Answers
Related