Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bindable LINQ libraries or "why Obtics is not actively maintained anymore"

The ultimate task is: bind some WPF controls to LINQ queries.

Having searched for "Bindable LINQ" I've found multiple references to Obtics, Bindable Linq and Continuous LINQ. They do what I want to, but one thing confuses me: their age. Seems like their development stopped at nearly the same time somewhere in 2009-2010, which is suspicious.

Is it still reasonable to use them? Haven't they eventually been superseded by some standard library means?

like image 569
vines Avatar asked Feb 22 '13 13:02

vines


3 Answers

After some more research:

  1. I've found OLinq. It is maintained and quite functional. Some Linq operations are missing, but it's fairly expandable by design.
  2. I haven't seen any mentions of how good or bad such a solution is. Looks like it's simply uncommon.
like image 118
vines Avatar answered Oct 22 '22 03:10

vines


Let me introduce my library ObservableComputations. It is production ready library sutable for bind WPF controls to LINQ like queries.

like image 23
Igor Buchelnikov Avatar answered Oct 22 '22 03:10

Igor Buchelnikov


What you are looking for are Reactive Extensions (Rx.Net). For working with WPF MVVM there´s a library called ReactiveUI.

Then you can use ReactiveList instead of ObservableCollection and just define your linq querys on that list.

code form their documentation:

DocumentList = new ReactiveList<Document>() {
    ChangeTrackingEnabled = true,
};

DocumentList.ItemChanged
    .Where(x => x.PropertyName == "IsDirty" && x.Sender.IsDirty)
    .Select(x => x.Sender)
    .Subscribe(x => {
        Console.WriteLine("Make sure to save {0}!", x.DocumentName);
    });
like image 1
JakobFerdinand Avatar answered Oct 22 '22 05:10

JakobFerdinand