Current filter:
          You should refresh the page.
          Not Logged In

          Xpo Field Syncronization Malformed

          0
            • During Xpo class editing, using CodeRush's Xpo Field Syncronization plug-in, CodeRush will auto-generate syntactically malformed and/or redundant static Field class and member declarations.

              I have experienced this behavior on several systems, experience this type of problem frequently, and would characterize this bug as severe nearly to the point of making the feature unusable. Since Xpo complex criteria creation is perhaps the greatest departure from traditional data access development activities, requiring one of the greatest learning curves, automation features such as static Field autogeneration are necessary and at least highly valuable.

          FieldSyncroBugExample.cs
          0

          Hi Aaron,

          Here's an update on this problem. I have looked into this in some detail and I can reproduce the issue on my system. Now, the reason for the problem are the incomplete structures that are temporarily created while code is being edited - at this time, the plugin can't detect when the code structures are in an incomplete state, and the result of that is what you see when unnecessary additional Fields classes are generated.

          My apologies for the inconvenience, but there doesn't appear to be a quick and easy solution to the problem at the present time. I will continue to look into the issue, and there are certain developments going on in DXCore that may provide an answer if all else fails, but with no particular release target we can currently promise.

          Maybe I can mention a workaround - which is also the reason this problem has so far escaped our attention: if you use CodeRush templates consistently to create your code, you won't notice this problem. The reason is that by using the templates, your code doesn't enter these states where your class is temporarily rendered invalid. The templates always create a complete property, or method or other construct at once - manual editing brings about the situations that lead to this problem. Let me say again that I do see the problem you're having and I regard it as a serious bug - this is just to explain why I missed what must look pretty obvious to you, and maybe to offer a workaround.

          Regards
          Oliver Sturm

          0

          Hi Aaron,

          As you probably know, the CR_XPOFieldSync is not a "built-in" CodeRush plug-in written and supported by our IDE Team, but a custom DXCore plug-in written by Oliver Strum. However, Oliver has left our company.

          We do not have sources for this plug-in, and so, I'm afraid we can't do much on this problem. It looks as if the only thing we can suggest is to contact Oliver directly on this subject. E.g. you can post this problem in his blog:

          Oliver's Blog

          Thanks,
          Vito

          0

          BTW, there exists the XPO_EasyFields community plug-in that does a similar job. So, you may consider using it, as an alternative.

          Thanks,
          Vito

          You must  log in  or  register  to leave an answer