示例#1
0
 internal void Welcome(InsertSetVisitor visitor)
 {
     if (visitor.DoReset)
     {
         hasLoadedValue   = true;
         hasAssignedValue = false;
     }
 }
示例#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);
         }
     }
 }