Skip to content

Conversation

@bzbetty
Copy link
Contributor

@bzbetty bzbetty commented Mar 12, 2012

Allows you to update a column to the value from another column.

Update(e => e.Id == id, m => new Member { FirstName = m.LastName });

…d == id, m => new Member { FirstName = m.LastName });"
@bzbetty
Copy link
Contributor Author

bzbetty commented Mar 12, 2012

Unfortunately it isn't easy to map to columns on related entities. Eg the following doesn't work

Update(e => e.id, m => new member { LastName = m.RelatedEntity.Propertyname });

pwelter34 added a commit that referenced this pull request May 2, 2012
Allow for updates to reference other columns
@pwelter34 pwelter34 merged commit 727fd4b into zzzprojects:master May 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants