EmbeddedSourceMismatch Class

Assembly: CodeEffects.Rule.Repository.dll
Namespace: CodeEffects.Rule.Repository

Summary

Describes a source object whose latest definition embeds a type that is also a source object of its own, where the two no longer declare the same members. Listed in SyncResult.SourcesOutOfSync.

Syntax

public class EmbeddedSourceMismatch

Remarks

You never create this class. A Source XML document carries the types of its collections as further source elements: a Patient source embeds Hospital as the type of its Hospitals collection. Each embedded type is a snapshot taken when the document was synced. When Hospital is also synced as a source object of its own, at another time or from another definition, the two can drift apart.

This is a warning, not a failure. What it costs: a reusable rule written on Hospital that uses a member which the copy inside Patient does not have cannot be called from a Patient rule. The editor does not offer it, and a save that calls it is refused. Syncing both source objects again from the same definitions puts them back in step.

Properties

  • AliasName

    Type: System.String

    Gets the alias of the source object whose definition embeds the other.

  • EmbeddedAliasName

    Type: System.String

    Gets the alias of the embedded type, which is also a source object of its own.

  • EmbeddedSourceVersionId

    Type: System.Int32

    Gets the ID of the latest version of the embedded type's own source object.

  • Message

    Type: System.String

    Gets what happened and what to do about it, written for a developer's log.

  • MissingFromCopy

    Type: System.Int32

    Gets how many members the embedded type's own source object declares that the embedded copy does not. Data sources are not compared.

  • MissingFromSource

    Type: System.Int32

    Gets how many members the embedded copy declares that the embedded type's own source object does not. Data sources are not compared.

  • SourceVersionId

    Type: System.Int32

    Gets the ID of the latest version of the embedding source object, which holds the embedded copy.

Ask on Stack Overflow - Yes, it's still active
Ask in GitHub Discussions

p102

l097 --

l102

p101

×