示例#1
0
 private void HandleChanging(IInvocation invocation, IPropertyBase property, IEqualityComparer comparer)
 {
     if (_checkEquality)
     {
         var oldValue = property.GetGetter().GetClrValue(invocation.Proxy);
         var newValue = invocation.Arguments[^ 1];
示例#2
0
        /// <summary>
        ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
        ///     directly from your code. This API may change or be removed in future releases.
        /// </summary>
        protected virtual object ReadPropertyValue([NotNull] IPropertyBase propertyBase)
        {
            Debug.Assert(!propertyBase.IsShadowProperty);

            return(propertyBase.GetGetter().GetClrValue(Entity));
        }