protected override bool CheckOneWayRelations(string propertyName) { int numberOfOneWayRelations = 0+1; switch(propertyName) { case null: return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null)); case "AspnetApplication": return true; default: return base.CheckOneWayRelations(propertyName); } }