rivantsov / vita

VITA Application Framework
MIT License
59 stars 15 forks source link

Version 3.5 pushed. #213

Closed rivantsov closed 7 months ago

rivantsov commented 1 year ago

Details will follow. Sorry it took so long. Big internal refactoring of model building, new Key building process (PK, FK, indexes) Moved apps, tests to Net6

Details here: https://github.com/rivantsov/vita/wiki/Code-changes-history

rubenalves commented 1 year ago

Hello,

I have updated to 3.5. and my model does not Build, is there any breaking changes?

rivantsov commented 1 year ago

sorry to hear this, lets fix it. There are no breaking changes, everything should be compatible, all changes are internal. What's the error messages? The easiest and quickest way would be if you can (if possible) send me the SQL script of database (without data) to rivantsov AT gmail dot com, so I can debug the model build phase. I promise non-disclosure and keep it to myself

rubenalves commented 1 year ago

The problem is there are no eror messages, only that the model does not Build. I will try again and se if i can see a error on the debugger

rivantsov commented 1 year ago

the exception StartupFailedExc should have list of errors inside

rubenalves commented 1 year ago

O got this error: Initializing EntityApp TsGest 2023.==================================== Building entity model... AuditMensagem.ID: Index/key attribute (Vita.Entities.PrimaryKeyAttribute) on member should not have explicit member list.

rivantsov commented 1 year ago

so can you pls share the c# source of this property ID of AuditMensagem entity, with its attributes?

rivantsov commented 1 year ago

Looks like you just need to remove arguments in Primarykey attribute on this property; the property itself (ID) is the column that is PK Or, if the PK is composite, with multiple columns, move it to the Entity

rubenalves commented 1 year ago

It hade atributes and thar entity is not needed any more, so it is runing fine now. Thanks.

rivantsov commented 1 year ago

More stuff in 3.5 - packed vitaDbTool into a tool nuget package; see more in code changes history