43 references to TargetAccessor
System.Data.Entity (43)
System\Data\Objects\DataClasses\EntityCollection.cs (4)
553
if (this.
TargetAccessor
.HasProperty) // Null if the navigation does not exist in this direction
732
if (!
TargetAccessor
.HasProperty)
744
this.
TargetAccessor
.PropertyName, this.WrappedOwner.Entity.GetType().FullName));
832
if (this.
TargetAccessor
.HasProperty) // Null if the navigation does not exist in this direction
System\Data\Objects\DataClasses\EntityReference.cs (1)
620
return !
TargetAccessor
.HasProperty || WrappedOwner.GetNavigationPropertyValue(this) == null;
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (4)
586
if (this.
TargetAccessor
.HasProperty)
708
if (!
TargetAccessor
.HasProperty)
720
if (this.
TargetAccessor
.HasProperty)
802
if (this.
TargetAccessor
.HasProperty)
System\Data\Objects\DataClasses\RelatedEnd.cs (6)
1296
if (entityToAdd.RequiresRelationshipChangeTracking &&
TargetAccessor
.HasProperty)
1400
this.
TargetAccessor
.HasProperty) // Is there anything to verify?
1720
if (this.
TargetAccessor
.HasProperty && !this.CheckIfNavigationPropertyContainsEntity(wrapper))
1738
if (this.
TargetAccessor
.HasProperty && this.CheckIfNavigationPropertyContainsEntity(wrapper))
2549
if (this.navigationPropertyCache == null && _wrappedOwner.Context != null && this.
TargetAccessor
.HasProperty)
2551
string navigationPropertyName = this.
TargetAccessor
.PropertyName;
System\Data\Objects\EntityEntry.cs (1)
2105
if (reference.
TargetAccessor
.HasProperty)
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (26)
47
if (relatedEnd.
TargetAccessor
.ValueGetter == null)
50
PropertyInfo propertyInfo = EntityUtil.GetTopProperty(ref type, relatedEnd.
TargetAccessor
.PropertyName);
53
throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.
TargetAccessor
.PropertyName, type.FullName));
56
relatedEnd.
TargetAccessor
.ValueGetter = factory.CreateBaseGetter(type, propertyInfo);
60
navPropValue = relatedEnd.
TargetAccessor
.ValueGetter(_entity);
64
throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.
TargetAccessor
.PropertyName, _entity.GetType().FullName), ex);
79
if (relatedEnd.
TargetAccessor
.ValueSetter == null)
82
PropertyInfo propertyInfo = EntityUtil.GetTopProperty(ref type, relatedEnd.
TargetAccessor
.PropertyName);
85
throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.
TargetAccessor
.PropertyName, type.FullName));
88
relatedEnd.
TargetAccessor
.ValueSetter = factory.CreateBaseSetter(type, propertyInfo);
92
relatedEnd.
TargetAccessor
.ValueSetter(_entity, value);
96
throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.
TargetAccessor
.PropertyName, _entity.GetType().FullName), ex);
166
if (relatedEnd.
TargetAccessor
.CollectionAdd == null)
168
relatedEnd.
TargetAccessor
.CollectionAdd = CreateCollectionAddFunction(entity.GetType(), relatedEnd.
TargetAccessor
.PropertyName);
172
relatedEnd.
TargetAccessor
.CollectionAdd(collection, value);
176
throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.
TargetAccessor
.PropertyName, entity.GetType().FullName), ex);
225
if (relatedEnd.
TargetAccessor
.CollectionRemove == null)
227
relatedEnd.
TargetAccessor
.CollectionRemove = CreateCollectionRemoveFunction(entity.GetType(), relatedEnd.
TargetAccessor
.PropertyName);
230
return relatedEnd.
TargetAccessor
.CollectionRemove(collection, value);
235
throw new EntityException(System.Data.Entity.Strings.PocoEntityWrapper_UnableToSetFieldOrProperty(relatedEnd.
TargetAccessor
.PropertyName, entity.GetType().FullName), ex);
278
if (relatedEnd.
TargetAccessor
.CollectionCreate == null)
281
string propName = relatedEnd.
TargetAccessor
.PropertyName;
283
relatedEnd.
TargetAccessor
.CollectionCreate = CreateCollectionCreateDelegate(entityType, navPropType, propName);
285
return relatedEnd.
TargetAccessor
.CollectionCreate();
System\Data\Objects\ObjectStateManager.cs (1)
1091
if (relatedEnd.
TargetAccessor
.HasProperty)