internal void Welcome(InsertSetVisitor visitor) { if (visitor.DoReset) { hasLoadedValue = true; hasAssignedValue = false; } }
void IDbEntityInternal.ModifyInternalState(InsertSetVisitor visitor) { if (visitor.DoReset) { isLoaded = true; visitor.ResetDbValues(this); } else { if (!IsMarkedForDeletion && (((ILongId)this).Id == 0 || !isLoaded)) { visitor.InsertEntity(this); } } }