src/Misc/EFTools/EntityDesignModel/Commands/CreateComplexTypePropertyCommand.cs
/// <summary>
///     Creates scalar property with a default, unique name and passed 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 scalar property with a default, unique name and passed type
Creates scalar property with a default unique name and passed type
internal static Property CreateDefaultProperty(CommandProcessorContext cpc, ComplexType parentComplexType, string type)
        {
            var name = ModelHelper.GetUniqueName(typeof(ConceptualProperty), parentComplexType, Property.DefaultPropertyName);
            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 , string type ) { var name = ModelHelper . GetUniqueName ( typeof ( ConceptualProperty ) , parentComplexType , Property . DefaultPropertyName ) ; var cmd = new CreateComplexTypePropertyCommand ( name , parentComplexType , type , false ) ; var cp = new CommandProcessor ( cpc , cmd ) ; cp . Invoke ( ) ; return cmd . Property ; }
Creates scalar property with a default, unique name and passed type
Creates scalar property with a default unique name and passed type
None
cpc
CommandProcessorContext
None
parentComplexType
ComplexType
parent for new property
parent for new property
type
string
type for new property
type for new property