Pergunta

Is a XAF DevExpress project on WindowsForm, we just make the class/BussinesLogic and the framework does the rest(UI, dataAccess).

I am new at the project(XAF DevExpress also) and I see that my teammates modify the *.bo.designer.cs classes, but these classes have the next note:

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

they have been working this way for a while.

Are we doing it wrong?

when is the code regenerated?

thanks in advance.

Foi útil?

Solução

Yep, you're doing it wrong.. It will be re-generated at some point -- I've found it pretty inconsistent as to when that happens.

Those generated classes are either abstract or partial, so you should be able to just cut and paste your code into a separate file and be good to go. Reference here: https://documentation.devexpress.com/#Xaf/CustomDocument3258

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top