ThrowIfThisIsNew method

void ThrowIfThisIsNew()
Throws exception if this is a new service object.

Implementation

void ThrowIfThisIsNew() {
  if (this.IsNew) {
    throw new InvalidOperationException("Strings.ServiceObjectDoesNotHaveId");
  }
}