Replies: 3 comments 3 replies
-
You mean, that a warning is raised if a table as no property DataPerCompany set. Resulting in havin the property present on every table either true or false? |
Beta Was this translation helpful? Give feedback.
-
Indeed, a table - with TableType = Normal - should always have the DataPerCompany set. If we would forget to set the property and do not detect this before release (we luckily have scripts in place to do so), this property is impossible to revert. Letting the developer think about it by explicitly setting the DataPerCompany can help us preventing these issues. |
Beta Was this translation helpful? Give feedback.
-
Running version seems to fail on LC0007, although it's a temporary table (which should be excluded from the check, not?) |
Beta Was this translation helpful? Give feedback.
-
It would be helpful to have a code analysis rule that enforces you to set the DataPerCompany property on a table object explicitly. Considering this property has a huge impact, it would be good to have the developer be reminded of the choice of making the table a per-company or 'global'/company-wide table. This could initially be a warning that is changed into an error a few major releases later.
https://experience.dynamics.com/ideas/idea/?ideaid=18641d7c-93e4-eb11-ba5e-0003ff45a9bb
Credits to Rob van Bekkum ;)
Beta Was this translation helpful? Give feedback.
All reactions