IsNew property

bool IsNew
Indicates whether this object is a real store item, or if it's a local object that has yet to be saved.

Implementation

bool get IsNew {
  ServiceId? id = this.GetId();

  return id == null ? true : !id.IsValid;
}