src/Misc/EFTools/EntityDesignEntityDesigner/GeneratedCode/DomainClasses.cs
/// <summary>
/// Returns a value indicating whether the source element represented by the
/// specified root ProtoElement can be added to this element.
/// </summary>
/// <param name="rootElement">
/// The root ProtoElement representing a source element.  This can be null, 
/// in which case the ElementGroupPrototype does not contain an ProtoElements
/// and the code should inspect the ElementGroupPrototype context information.
/// </param>
/// <param name="elementGroupPrototype">The ElementGroupPrototype that contains the root ProtoElement.</param>
/// <returns>true if the source element represented by the ProtoElement can be added to this target element.</returns>
Returns a value indicating whether the source element represented by the
specified root ProtoElement can be added to this element.
Returns a value indicating whether the source element represented by the specified root ProtoElement can be added to this element .
protected override bool CanMerge(DslModeling::ProtoElementBase rootElement, DslModeling::ElementGroupPrototype elementGroupPrototype)
		{
			if ( elementGroupPrototype == null ) throw new global::System.ArgumentNullException("elementGroupPrototype");
			if (rootElement != null)
			{
				DslModeling::DomainClassInfo rootElementDomainInfo = this.Partition.DomainDataDirectory.GetDomainClass(rootElement.DomainClassId);
				if (rootElementDomainInfo.IsDerivedFrom(global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.NavigationProperty.DomainClassId)) 
				{
					return true;
				}
				if (rootElementDomainInfo.IsDerivedFrom(global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.Property.DomainClassId)) 
				{
					return true;
				}
			}
			return base.CanMerge(rootElement, elementGroupPrototype);
		}
protected override bool CanMerge ( DslModeling :: ProtoElementBase rootElement , DslModeling :: ElementGroupPrototype elementGroupPrototype ) { if ( elementGroupPrototype == null ) throw new global :: System . ArgumentNullException ( " " ) ; if ( rootElement != null ) { DslModeling :: DomainClassInfo rootElementDomainInfo = this . Partition . DomainDataDirectory . GetDomainClass ( rootElement . DomainClassId ) ; if ( rootElementDomainInfo . IsDerivedFrom ( global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . NavigationProperty . DomainClassId ) ) { return true ; } if ( rootElementDomainInfo . IsDerivedFrom ( global :: Microsoft . Data . Entity . Design . EntityDesigner . ViewModel . Property . DomainClassId ) ) { return true ; } } return base . CanMerge ( rootElement , elementGroupPrototype ) ; }
Returns a value indicating whether the source element represented by the
specified root ProtoElement can be added to this element.
Returns a value indicating whether the source element represented by the specified root ProtoElement can be added to this element .
true if the source element represented by the ProtoElement can be added to this target element.
true if the source element represented by the ProtoElement can be added to this target element .
rootElement
DslModeling::ProtoElementBase
The root ProtoElement representing a source element.  This can be null,
in which case the ElementGroupPrototype does not contain an ProtoElements
and the code should inspect the ElementGroupPrototype context information.
The root ProtoElement representing a source element . This can be null in which case the ElementGroupPrototype does not contain an ProtoElements and the code should inspect the ElementGroupPrototype context information .
elementGroupPrototype
DslModeling::ElementGroupPrototype
The ElementGroupPrototype that contains the root ProtoElement.
The ElementGroupPrototype that contains the root ProtoElement .