With EF 4.0, for each property, EF provides following way for customized validatation on property changing:
partial void OnMyNameChanged()
{
//.....
}
the return type is void.
But I want to change the return type, say like bool or string.
Is it possible to do it in this way?