예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = DocumentsInTransactionPosition.GetHashCode();
         result = (result * 397) ^ DocumentsByIdPosition.GetHashCode();
         result = (result * 397) ^ DocumentsByEtagPosition.GetHashCode();
         result = (result * 397) ^ DocumentsPosition.GetHashCode();
         result = (result * 397) ^ AttachmentPosition.GetHashCode();
         result = (result * 397) ^ TasksPosition.GetHashCode();
         result = (result * 397) ^ TasksCount.GetHashCode();
         result = (result * 397) ^ DocumentsCount.GetHashCode();
         result = (result * 397) ^ AttachmentsCount.GetHashCode();
         result = (result * 397) ^ TransactionPosition.GetHashCode();
         result = (result * 397) ^ IdentityPosition.GetHashCode();
         result = (result * 397) ^ IndexesPosition.GetHashCode();
         result = (result * 397) ^ QueuesPosition.GetHashCode();
         result = (result * 397) ^ TasksByIndexPosition.GetHashCode();
         result = (result * 397) ^ MappedResultsByReduceKeyPosition.GetHashCode();
         result = (result * 397) ^ MappedResultsByDocumentIdPosition.GetHashCode();
         return(result);
     }
 }
예제 #2
0
 public IdentityAttribute(string propertyName, IdentityPosition position = IdentityPosition.NotSet, string constraintName = null)
 {
     PropertyName   = propertyName;
     Position       = position;
     ConstraintName = constraintName;
 }