danikf / tik4net

Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Apache License 2.0
178 stars 93 forks source link

TikEntityPropertyAccessor.ConvertFromString logic wrong for enum with mutiple flags set #79

Open cbagpipe opened 3 years ago

cbagpipe commented 3 years ago

Filter rule connection-state property contains three flags, but Where() selector uses string.Equals(), so no items will be selected

изображение

https://github.com/danikf/tik4net/blob/671d2828500283d273a5451b199eaed3845e1306/tik4net.objects/TikEntityPropertyAccessor.cs#L135-L139