We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
@mauroservienti I have a problem... may you help me how to solve this without having entity?
public EntityPropertyStates GetEntityPropertyState<TEntity>(TEntity entity, string propertyName) { var property = entity.GetType().GetProperty(propertyName); Ensure.That(property) .WithMessage("Cannot find property: {0}", propertyName) .IsNotNull(); var state = EntityPropertyStates.None; if (TryGetOriginalValue(propertyName, out TProperty originalValue)) { state |= EntityPropertyStates.Changed; TProperty actualValue; if (entity is Model.Entity e) { actualValue = e.GetPropertyValue<TProperty>(propertyName); } else { actualValue = (TProperty)property.GetValue(entity, null); } if (!Equals(originalValue, actualValue)) { state |= EntityPropertyStates.ValueChanged; } } return state; }
Thanks
Sorry, something went wrong.
Skip it, raise a dedicated issue and move forward. I have a couple of ideas but they are viral changes that might take a long time to tackle.
I'm not sure where this stands, removing it from the 2.1.0 milestone to get it out of the door. We can continue working on it for the next release.
nazarenomanco
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: