The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

ASPX templates ignore User Metadata. Therefore ASPX Pages do not compile.

Last post 09-16-2007, 6:12 PM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  09-15-2007, 10:47 PM 5112

    ASPX templates ignore User Metadata. Therefore ASPX Pages do not compile.

    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

     

  •  09-16-2007, 6:12 PM 5118 in reply to 5112

    Re: ASPX templates ignore User Metadata. Therefore ASPX Pages do not compile.

    We are addressing this, enhanced ASPX templates are coming out in our next release. Scott is working on these, be sure to jump on our first beta, hopefully early to mid October ...

    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML