1. Thomas Rolseth
  2. SnapDevelop
  3. Wednesday, 15 July 2020 23:04 PM UTC

We were using DataObjectFactory.LoadDataWindow(null) in the startup class of our xUnit project for our API.  I've discovered that our unit tests referencing datawindows are no longer working with an error message stating that the metadata for the datawindow could not be found.  This has happened since migrating to SnapDevelop 2.0 so I'm guessing it is still looking for the datawindow srd files (which no longer exist).

Has this method been deprecated and if so, what is the suggested fix?

Thanks, Tom

 

Accepted Answer
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Thursday, 16 July 2020 01:24 AM UTC
  2. SnapDevelop
  3. # Permalink

Hi Tom,

Yes. There is a DwModelManager class in  DwNet.Data 2.0.0. 

You can refer to the DwModelManager.LoadDwModels method: https://docs.appeon.com/dwconverter2019r2/api_reference/DWNet.Data/DwModelManager/Method/LoadDwModels.html

Please refer to "What's New in C# Development and Migration" for more details about other changes in SnapDevelop 2019 R2:https://docs.appeon.com/snapdevelop2019r2/Features_List/index.html#refactored-net-datastore

 

Regards,

Logan

Comment
  1. Thomas Rolseth
  2. Thursday, 16 July 2020 14:28 PM UTC
Your suggestion worked -- thanks!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.