Skip to content

Conversation

@PospisilBohumir
Copy link

.Update() and .Delete() don't work with inherited entities e.g. for entities:
public abstract class Customer
{
public long Id { get; set; }
public string Name { get; set; }
}

public class CustomerA : Customer
{
    public string Info { get; set; }
}

....
the Update call:
context.Set().Update(o => new CustomerA
{
Info = "X",
});

will throw exception. Similar problem occurred in case of delete
This fix should solve this problems

pwelter34 added a commit that referenced this pull request Jul 9, 2015
Fix of Mapping provider to allow use of inheritance
@pwelter34 pwelter34 merged commit f1efb85 into zzzprojects:master Jul 9, 2015
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