public static IObservable <Unit> ConnectBulkObjectUpdate(this ApplicationModulesManager manager) { return(manager.WhenGeneratingModelNodes1 <IModelBulkObjectUpdateRules>(false, rules => { var rule = rules.AddNode <IModelBulkObjectUpdateRule>(); rule.DetailView = (IModelDetailView)rules.Application.Views[TestTask.TaskBulkUpdateDetailView]; rule.ListView = rules.Application.BOModel.GetClass(typeof(TestTask)).DefaultListView; rule.Caption = "Update"; }).ToUnit()); }