delMetadata.Properties
    If (modelProperty.Scaffold) AndAlso (Not modelProperty.IsPrimaryKey) AndAlso (Not modelProperty.IsForeignKey) Then
#>
<#
        ' This is a temporary work around until core scaffolding provides support for independent associations.
        If (modelProperty.IsAssociation) AndAlso (GetRelatedModelMetadata(modelProperty) Is Nothing)  Then
            Continue For
        End If
#>
        <dt>
            @Html.DisplayNameFor(Function(model) model.<#= GetValueExpression(modelProperty) #>)
        </dt>

        <dd>
            @Html.DisplayFor(Function(model) model.<#= GetValueExpression(modelProperty) #>)
        </dd>

<#
    End If
Next
#>
    </dl>
    @Using (Html.BeginForm())
        @Html.AntiForgeryToken()

        @<div class="form-actions no-color">
            <input type="submit" value="Delete" class="btn btn-default" /> |
            @Html.ActionLink("Back to List", "Index")
        </div>
    End Using
</div>
<#
' The following code closes the tag used in the case of a view using a layout page and the body and html tags in the case of a regular view page
#>
<#
If (Not IsPartialView) AndAlso (Not IsLayoutPageSelected) Then
    ClearIndent()
#>
</body>
</html>
<#
End If
#>
<#@ include file="ModelMetadataFunctions.vb.include.t4" #>