src/Misc/EFTools/EntityDesignModel/Commands/CreateComplexTypePropertyCommand.cs
/// <summary>
///     Creates complex property with a default,unique name and passed complex type
/// </summary>
/// <param name="cpc"></param>
/// <param name="parentComplexType">parent for new property</param>
/// <param name="type">type for new property</param>
/// <returns></returns>
Creates complex property with a default,unique name and passed complex type
Creates complex property with a default unique name and passed complex type
internal static Property CreateDefaultProperty(CommandProcessorContext cpc, ComplexType parentComplexType, ComplexType type)
        {
            var name = ModelHelper.GetUniqueName(
                typeof(ConceptualProperty), parentComplexType, ComplexConceptualProperty.DefaultComplexPropertyName);
            var cmd = new CreateComplexTypePropertyCommand(name, parentComplexType, type, false);
            var cp = new CommandProcessor(cpc, cmd);
            cp.Invoke();
            return cmd.Property;
        }
internal static Property CreateDefaultProperty ( CommandProcessorContext cpc , ComplexType parentComplexType , ComplexType type ) { var name = ModelHelper . GetUniqueName ( typeof ( ConceptualProperty ) , parentComplexType , ComplexConceptualProperty . DefaultComplexPropertyName ) ; var cmd = new CreateComplexTypePropertyCommand ( name , parentComplexType , type , false ) ; var cp = new CommandProcessor ( cpc , cmd ) ; cp . Invoke ( ) ; return cmd . Property ; }
Creates complex property with a default,unique name and passed complex type
Creates complex property with a default unique name and passed complex type
None
cpc
CommandProcessorContext
None
parentComplexType
ComplexType
parent for new property
parent for new property
type
ComplexType
type for new property
type for new property