/// <summary>
        /// Override Equals
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            StubAssetID other = obj as StubAssetID;

            if (other == null)
            {
                return(false);
            }
            if (object.ReferenceEquals(this, other))
            {
                return(true);
            }
            return(_id == other._id);
        }
 /// <summary>
 /// Constructor used to represent an entity that does not exist yet in the VersionOne System
 /// </summary>
 internal Entity(V1Instance instance)
 {
     stubAssetID   = new StubAssetID();
     this.instance = instance;
 }
 /// <summary>
 /// Save any changes to this entity to the VersionOne System with a comment
 /// </summary>
 /// <exception cref="DataException">Thrown when a rule or security violation has occurred.</exception>
 public void Save(string comment)
 {
     assetID     = instance.Commit(this, comment);
     stubAssetID = null;
 }