internal override void Invoke(CommandProcessorContext cpc) { EntityType modelEntity = null; if (_dialog.BaseEntityType != null) { modelEntity = CreateEntityTypeCommand.CreateDerivedEntityType(cpc, _dialog.EntityName, _dialog.BaseEntityType, false); } else { modelEntity = CreateEntityTypeCommand.CreateConceptualEntityTypeAndEntitySetAndProperty( cpc, _dialog.EntityName, _dialog.EntitySetName, _dialog.CreateKeyProperty, _dialog.KeyPropertyName, _dialog.KeyPropertyType, ModelHelper.CanTypeSupportIdentity(_dialog.KeyPropertyType) ? ModelConstants.StoreGeneratedPattern_Identity : ModelConstants.StoreGeneratedPattern_None, false); } }