version 14.2 exeption

StatusIDPriorityType
Closed22815MajorQuestion
ProfileReply
Γρηγορης ΤσολακιδιςClient

Every time we add xafary modules to xaf project we get the following exception on application log. Did we miss something

Type: Exception
Message: The entity set for the 'Xafari.CustomAppearances.CustomAppearanceRule' type is not found.
Data: 0 entries
Stack trace:

σε DevExpress.ExpressApp.EF.EFTypeInfoSource.GetEntitySetName(Type type)
σε DevExpress.ExpressApp.EF.EFObjectSpace.GetEntitySetName(Type type)
σε DevExpress.ExpressApp.EF.EFObjectSpace.GetObjectQueryT[T](IList`1 memberNames, CriteriaOperator criteria, IList`1 sorting)
InnerException is null

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Client

Hello,

Thanks, we are already researching it.

It will take some additional time. Please stay tuned.

Sasha

Γρηγορης Τσολακιδις

Hi Sasha - we are using EF XAF project. Hope this to help

Sasha (Xafari Support)Client

Hi,

Thanks, we have reproduced this issue for the from EF XAF project.

This issue is solved.

Sasha

Γρηγορης Τσολακιδις

What you mean solved?

Sasha (Xafari Support)Client

Hi,

Sorry, I gave you the wrong info yesterday.

To solve your issue you should deactivate Xafari controller ApplyAppearanceRulesController

public partial class DeactivatedApplyAppearanceRulesController : ViewController
    {
        public DeactivatedApplyAppearanceRulesController()
        {
            InitializeComponent();
        }
        protected override void OnActivated()
        {
            base.OnActivated();
            var controller = Frame.GetController<ApplyAppearanceRulesController>();
            controller.Active.SetItemValue("CustomAppearanceRule", false);
        }
    }

and delete action "saApperanceRule" in ModelEditor (see attached file saAppearanceRule.png).

Please try this solution and let me know whether it suits you or not.

Thanks, Sasha

 

Attached files:
Γρηγορης Τσολακιδις

OK. We will try it. I make a small project which you can check.
Also in order to make this project MVC what I should do?
Is there a guidelines or getting started tutorial about that?

Γρηγορης Τσολακιδις

The solution proposed did work and now we have a working starter template with the xafari module.

× This ticket is closed.

Write US