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