protected CheckOneWayRelations ( string propertyName ) : bool | ||
propertyName | string | Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided |
리턴 | bool |
protected override bool CheckOneWayRelations(string propertyName)
{
int numberOfOneWayRelations = 0;
switch(propertyName)
{
case null:
return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null));
default:
return base.CheckOneWayRelations(propertyName);
}
}