/// <summary> /// Removes the xpo views from application model. /// </summary> /// <param name="typesInfo">The types information.</param> /// <returns>ITypesInfo.</returns> /// <autogeneratedoc /> public static ITypesInfo RemoveXpoViewsFromApplicationModel(this ITypesInfo typesInfo) { typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <PersistentBase> >() .Build(); typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <XPBaseObject> >() .Build(); return(typesInfo); }
public override void CustomizeTypesInfo(ITypesInfo typesInfo) { base.CustomizeTypesInfo(typesInfo); typesInfo.RemoveXafViewsFromApplicationModel(); typesInfo.RemoveXpoViewsFromApplicationModel(); typesInfo .CreateModelBuilder <FeatureCenterEditorsBaseObjectModelBuilder>() .Build(); typesInfo .CreateModelBuilder <FeatureCenterModelBuildersBaseObjectModelBuilder>() .Build(); #region Editors typesInfo .CreateModelBuilder <StepProgressBarEnumEditorDemoModelBuilder>() .Build(); typesInfo .CreateModelBuilder <TokenStringEditorDemoModelBuilder>() .Build(); typesInfo .CreateModelBuilder <TokenObjectsEditorDemoModelBuilder>() .Build(); typesInfo .CreateModelBuilder <WebViewUriEditorDemoModelBuilder>() .Build(); typesInfo .CreateModelBuilder <WebViewHtmlStringEditorDemoModelBuilder>() .Build(); #endregion #region ModelBuilders typesInfo .CreateModelBuilder <ModelBuilderIntroductionDemoBuilderInfra>() .Build(); typesInfo .CreateModelBuilder <ModelBuilderIntroductionDemoBuilder>() .Build(); #endregion }
public override void CustomizeTypesInfo(ITypesInfo typesInfo) { base.CustomizeTypesInfo(typesInfo); typesInfo .CreateModelBuilder <DemoTaskModelBuilder>() .Build(); //Alternative: //var builder = new DemoTaskModelBuilder(typesInfo.FindTypeInfo<DemoTask>()); //builder.Build(); }
/// <summary> /// Removes the xpo views from application model. /// </summary> /// <param name="typesInfo">The types information.</param> /// <param name="removeDashboards">if set to <c>true</c> [remove dashboards].</param> /// <returns>ITypesInfo.</returns> public static ITypesInfo RemoveXafViewsFromApplicationModel(this ITypesInfo typesInfo, bool removeDashboards = true) { typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <NonPersistentBaseObject> >() .Build(); typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <NonPersistentObjectImpl> >() .Build(); typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <NonPersistentEntityObject> >() .Build(); typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <NonPersistentBaseObject> >() .Build(); typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <NonPersistentLiteObject> >() .Build(); #region SystemModule typesInfo .CreateModelBuilder <RemoveViewsModelBuilder <SystemModule.ProcessDataLockingInfoDialogObject> >() .Build(); if (removeDashboards) { ModelBuilder.Create <ViewDashboardOrganizationItem>(typesInfo) .GenerateNoListViews() .Build(); ModelBuilder.Create <DashboardCreationInfo>(typesInfo) .GenerateNoListViews() .Build(); ModelBuilder.Create <DashboardViewItemDescriptor>(typesInfo) .GenerateNoDetailView() .GenerateNoListView() .Build(); ModelBuilder.Create <DashboardName>(typesInfo) .GenerateNoDetailView() .GenerateNoLookupListView() .Build(); ModelBuilder.Create <DashboardOrganizationItem>(typesInfo) .GenerateNoDetailView() .GenerateNoLookupListView() .Build(); } #endregion return(typesInfo); }