Bug in EditableRootList.cst ? (0.9.5)

Bug in EditableRootList.cst ? (0.9.5)

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


thilker posted on Thursday, August 10, 2006

Hi!

When generating a EditableRootList with the option GenerationMethod = SplitBase the following
is generated:

        #region Data Access - Create
        [RunLocal]
        private void DataPortal_Create(Criteria criteria)
        {
        }

        #endregion //Data Access - Create

But the type Criteria is not defined, only the type FilterCriteria.

best regards,

Thorsten

rasupit replied on Thursday, August 10, 2006

Hmm...

I see this is happening when primary key is not identity key. The only time DataPortal.Create is generated when authorization rule is disabled.  But then the generated code should look as follow:

 #region Data Access - Create
 [RunLocal]
 protected override void DataPortal_Create(object criteria)
 {
 }

Thanks for your feedback, I'll fix for the next release.

Ricky

 

Copyright (c) Marimer LLC