GetComputedColumnName() public static method

public static GetComputedColumnName ( string implementationName ) : string
implementationName string
return string
 /// <summary>
 /// Same subtype may implement same supertype multiple time. Since ID of the supertype is usually same as subtype's ID,
 /// that might result with multiple supertype records with the same ID. To avoid duplicate IDs and still keep the
 /// deterministic ID values, the supertype's ID is XORed by a hash code taken from the ImplementationName.
 /// </summary>
 private string GetSubtypeImplementationIdSnippet()
 {
     if (IsSubtypeOf.ImplementationName == "")
     {
         return("");
     }
     else if (IsSubtypeOf.SupportsPersistedSubtypeImplementationColum())
     {
         return(",\r\n    SubtypeImplementationID = " + PersistedSubtypeImplementationIdInfo.GetComputedColumnName(IsSubtypeOf.ImplementationName));
     }
     else
     {
         int hash = DomUtility.GetSubtypeImplementationHash(IsSubtypeOf.ImplementationName);
         return(",\r\n    SubtypeImplementationID = CONVERT(UNIQUEIDENTIFIER, CONVERT(BINARY(4), CONVERT(INT, CONVERT(BINARY(4), ID)) ^ " + hash + ") + SUBSTRING(CONVERT(BINARY(16), ID), 5, 12))");
     }
 }