nicoriff / ORMi

A Light-ORM for accesing WMI
MIT License
209 stars 28 forks source link

[BUG] Querying classes with property of type ManagementBaseObject[] #36

Open Pierre-Adrien opened 1 year ago

Pierre-Adrien commented 1 year ago

There is an unhandled case of mapping using the IWMIHelper : when the result contain an array of ManagementBaseObject. I faced an error when I was querying "WmiMonitorListedSupportedSourceModes" (https://docs.microsoft.com/en-us/windows/win32/wmicoreprov/wmimonitorlistedsupportedsourcemodes). The class contain an array of "VideoModeDescriptor" but the mapping cannot be done in the "_SetPropertyValue" function because there isn't a case for "ManagementBaseObject[]".