protected override void SetRecordValue(int ordinal, object value) { if (_cacheEntry.IsRelationship) { // Cannot modify relation values from the public API throw EntityUtil.CantModifyRelationValues(); } else { (_cacheEntry as EntityEntry).SetCurrentEntityValue(_metadata, ordinal, _userObject, value); } }
/// <summary> /// Used to report that a complex property has been changed /// The property value that was cached during EntityMemberChanging is now added to OriginalValues /// </summary> /// <param name="entityMemberName">The name of the top-level entity property that has changed</param> /// <param name="complexObject">The complex object that contains the property that changed</param> /// <param name="complexObjectMemberName">The name of the property that changed on complexObject</param> override internal void EntityComplexMemberChanged(string entityMemberName, object complexObject, string complexObjectMemberName) { throw EntityUtil.CantModifyRelationValues(); }
/// <summary> /// Used to report that a scalar entity property has been changed /// The property value that was cached during EntityMemberChanging is now /// added to OriginalValues /// </summary> /// <param name="entityMemberName">The name of the entity property that has changing</param> override internal void EntityMemberChanged(string entityMemberName) { throw EntityUtil.CantModifyRelationValues(); }
public override void ApplyOriginalValues(object originalEntity) { throw EntityUtil.CantModifyRelationValues(); }
public override void ApplyCurrentValues(object currentEntity) { throw EntityUtil.CantModifyRelationValues(); }
public override OriginalValueRecord GetUpdatableOriginalValues() { throw EntityUtil.CantModifyRelationValues(); }