This is a sample from our esEntity template in the generated folder.
Code:
foreach(EntitySpaces.MetadataEngine.IColumn col in table.PrimaryKeys)
{
%><%=comma%><%
%><%=esMeta.esPlugIn.CSharpToSystemType(col) + " " + esMeta.esPlugIn.ParameterName(col)%><%
comma = ", ";
}%>)
Notice that there is a primary keys collection (could be a composite key) and if you want the name of the Column you should use Column.Alias which will be the column name unless you have defined an alias.
EntitySpaces |
Twitter |
BLOG | Please honor our Software License