protected UnsetRelatedEntity ( IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne ) : void | ||
relatedEntity | IEntityCore | Instance to unset as the related entity of type entityType |
fieldName | string | Name of field mapped onto the relation which resolves in the instance relatedEntity |
signalRelatedEntityManyToOne | bool | if set to true it will notify the manytoone side, if applicable. |
return | void |
protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne)
{
switch(fieldName)
{
case "AdminAttentionReportedByUser":
DesetupSyncAdminAttentionReportedByUser(false, true);
break;
case "AspnetUser":
DesetupSyncAspnetUser(false, true);
break;
case "DeleteRequestedByUser":
DesetupSyncDeleteRequestedByUser(false, true);
break;
case "PinnedByUser":
DesetupSyncPinnedByUser(false, true);
break;
case "SnDiscussionTopic":
DesetupSyncSnDiscussionTopic(false, true);
break;
case "SnRelationships":
this.PerformRelatedEntityRemoval(this.SnRelationships, relatedEntity, signalRelatedEntityManyToOne);
break;
default:
break;
}
}