Search code examples
mdriven

How to enhance length of Property of an attribute of class in eco Model designer


Iam using mdriven build 7.0.0.11347 for DDD project and have model designed in .ecomdl file.

In this file i have a class Job with WorkDone as one of a property. Backedup SQL table has WorkDone varchar(255) field. Now i wanted to increase length of this field and When i changed the WorkDone property length from 255 to 2000 then it modified the code file but when application runs EvolveSchema then evolving process doesn't recognize this change which leads to no scripts being generated. In the end database doesn't get this updated.

Can you please help me how to get this change persist to database. I thought to increase manually to SQL table but then if database gets change in case of new envrionment QA production then it has to be done every time, which id don't want to do.


Solution

  • In MDriven we dont evolve attribute changes - we only write a warning (255->2000 this change will not be evolved) You should take steps to alter the column in the database yourself.

    • We should fix in the future but currently this is a limitation