Bug in EditableSwitchable.cst ? (0.9.5)

Bug in EditableSwitchable.cst ? (0.9.5)

Old forum URL: forums.lhotka.net/forums/t/868.aspx


thilker posted on Thursday, August 10, 2006

Hi!

Here the code snipped from a generated class called TestBO:

    internal static TestBO NewTestBOChild(int id)
    {
        TestBO child = new TestBO(id);
        child.MarkAsChild();
        return child;
    }

Here the constructor TestBO(int id) is used, but it's not defined in the class.

I think "TestBO child = NewTestBO(id);" is correct.

Thanks.

Thorsten

rasupit replied on Thursday, August 10, 2006

Thorsten,

The constructor that contain primary key as parameter needs to be generated.  I think this is a bug when you have table with non identity primary key.

I'll fix this and should be available on the release.

Thanks for your feedback,

Ricky

vivus replied on Friday, August 25, 2006

for the .95 templates, when working with editable switchable and the editable root list, in conjuction together..  the generic methods for the executexxx<p> and  seem to be off.  am i missing something? 

rasupit replied on Wednesday, August 30, 2006

You should not define the parent when use in conjuction with editable root list

Ricky

Copyright (c) Marimer LLC