<%: Html.ActionLink("Create New", "Create") %>
<# Dim properties As List(Of ModelProperty) = GetModelProperties(Model.ViewDataType, True) For Each modelProp As ModelProperty In properties If (Not modelProp.IsPrimaryKey AndAlso Not modelProp.IsForeignKey) Then #> | <#= modelProp.Name #> | <# End If Next #>|
---|---|---|
<%: Html.ActionLink("Edit", "Edit", New With {.id = itemValue.<#= Model.PrimaryKeyName #>}) %> | <%: Html.ActionLink("Details", "Details", New With {.id = itemValue.<#= Model.PrimaryKeyName #>}) %> | <%: Html.ActionLink("Delete", "Delete", New With {.id = itemValue.<#= Model.PrimaryKeyName #>}) %> | <# Else #><%--<%: Html.ActionLink("Edit", "Edit", New With {.id = itemValue.PrimaryKey}) %> | <%: Html.ActionLink("Details", "Details", New With {.id = itemValue.PrimaryKey}) %> | <%: Html.ActionLink("Delete", "Delete", New With {.id = itemValue.PrimaryKey}) %>--%> | <# End If For Each modelProp As ModelProperty In properties If (Not modelProp.IsPrimaryKey AndAlso Not modelProp.IsForeignKey) Then #><%: <#= modelProp.ValueExpression.Replace("Model.", "itemValue.") #> %> | <# End If Next #>