Hi All,
I am using MyGen latest and the latest ES developer edition which I downloaded yesterday. I also downloaded the Admin templates and I was able to make the demo Northwind C# site work on my machine.
However, when generating the ASPX pages for another database, the pages did not compile. I noticed that the generated aspx pages do not use the User Metadata defined for that database... I use the VB web template for this, but I checked the C# and it has exactly the same issue.
In the ASPX template code, the names of classes and variables are generated using a simple string as parameter to the plugin methods, as illustrated in the example below:
Code:
Dim coll As <%=esPlugIn.Collection(entityName)%> = New <%=esPlugIn.Collection(entityName)%>()
In the templates generating the abstract classes a different way is used, by passing an object of type esPluginSource as parameter :
Code:
<% source = new EntitySpaces.PlugIn.esPluginSource(table, null); %>
Dim coll As <%=esPlugIn.Collection(source)%> = New <%=esPlugIn.Collection(source)%>()
I asked myself why the demo site that I downloaded from your site (and pretty much generated from scratch) worked. The reason is that I did not define any metadata for the Northwind database...
I am wondering if this is a 'by design' thing and if there are perhaps some newer page templates that use metadata correctly. I can change the ASP template but then, your next release might overwrite it and then I will have to port the changes across, etc. Unless you include my changed template in your next release :-).
Thank you,
Sorin Buzila