Questions tagged [xaf]

The DevExpress eXpressApp Framework (XAF) is a modern and flexible .NET application framework that allows you to create powerful line-of-business applications that simultaneously target Windows and the Web.

XAF's scaffolding of the database and UI allows you to concentrate on business rules without the many distractions and tedious tasks normally associated with Windows and Web development. XAF's modular design facilitates a plug and play approach to common business requirements such as security and reporting. Learn more on features and benefits at http://www.devexpress.com/xaf

264 questions
1
vote
1 answer

The given key 'DevExpres......' was not present in the dictionary

I use XAF DevExpress and I have some problems to create a EF Core Migration I am trying to perform a migration with the Add-Migration InitialCreate command, and I always have the same problem, I have the following error: "The given key…
SrTemas
  • 19
  • 4
1
vote
1 answer

The column name is specified more than once inserting into entities with 1 to 1 relationship

I have two tables that join in a 1 to 1 relationship using System.ComponentModel; public class Product { public Product() { MaterialProperties = new MoreProductInfo { Product = this }; } [Key] …
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
1 answer

How to declare a parent child relationship when both tables are TPH and the relationship is in the base classes?

My problem relates to sales orders and sales invoices but I find it easier to think of pets and their offspring... without creating a full pedigree model. My DbContext using System; using DevExpress.ExpressApp.EFCore.Updating; using…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
1 answer

How to set PopUpWindow to be on the same monitor as the application? (xaf)

The user often moves my XAF Winforms app between monitors. However dialogs invoked by the PopUpWindowShowAction remain on the old monitor This issue can be repeated with Dev Express's Main Demo ( although to debug it there I think I would need to…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
1 answer

What Nuget Package do I need for WinApplication.GetSecurityStrategy().RegisterXPOAdapterProviders();?

I created a new Winforms Xaf Xpo standard security project with 21.2/5 Then I changed the framework of each project to be 4.7.2 Then I ran the upgrade wizard. Then I tried to convert the project files to use Nuget with Package References. However I…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
0 answers

JSON validation failed:Expression must be of type 'object'

When I go to publish my Xaf Blazor app to Azure app service in VS2022 I notice a json error according to Resharper 2021.3.1. The app does in fact publish. How do I go about troubleshooting the error? Currently I am hovering the mouse over each…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
1 answer

Visual Studio cannot resolve symbols and yet builds. Cannot resolve symbol onmodelcreating

I can open and build EFDemoCodeFirst project from Dev Express 21.1.4 However visual studio shows that some symbols cannot be resolved. Why does it build and run when VS2019 shows red? Resharper 2020.3.2
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
1 answer

invalid object name dbo.EdmMetaData calling new EFObjectSpaceProvider

I want to find exceptions that may influence my c# winforms xaf application load time. So I turned on Common Language Runtime Settings Now I experience this error System.Data.SqlClient.SqlException HResult=0x80131904 Message=Invalid object…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
1 answer

DevExpress XAF Cascading Lookup List Views

I have created DevExpress XAF Blazor application. I have four tables(pages) The first one is Category related by a one-to-many with AssignedContractorCategory table -oid string -Title string private string _Title; public string Title { get {…
M.Bouabdallah
  • 530
  • 10
  • 29
1
vote
1 answer

XAF Blazor How to show multiple columns in lookupedit

I want to show multiple columns in LookupEdit So this is my BusinessObjects The first class is 'Country' public class Country : BaseObject { private string _CountryName; [RuleUniqueValue] [VisibleInListView(true),…
M.Bouabdallah
  • 530
  • 10
  • 29
1
vote
0 answers

Unexpected alteration to composite primary key order in entity framework migration

I am upgrading the security in an xaf application as per DevExpress help My situation is complicated because I have a mapping from the payroll table to the user table. I have found in the past that this mapping caused a need for some configuration…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
0 answers

System.Configuration.ConfigurationManager.ConnectionStrings retrieves old value at runtime

In my dotnetcore winforms application I am able to get the connection string correctly from app.config when running in the IDE var connectionString =…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
1 answer

Xaf how to set a ObjectKey for a navigation item based on current user

I have a business class called UsersInfo, which consists of User details. When the user clicks a navigation item named "MyDetails", they should be directed to a detail view, where the user should be able to view the current logged in user's users…
Dinesh
  • 23
  • 8
1
vote
2 answers

Turn off PropertyChanged Event whilst objects are being populated by a RawSQLQuery

In my XAF Winforms project, I am using the following to populate my non persistent System.Data.Entity objects // using System.Data.Entity.Infrastructure.DbRawSQLQuery List results =…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
1
vote
0 answers

NU1608: Detected package version outside of dependency constraint: DevExpress.ExpressApp.PivotChart.Win

I want to upgrade my xaf General Ledger Project to use the latest version of XAF. Looking at the module project I thought I would start by running the following in the Package Management Console update-package…
Kirsten
  • 15,730
  • 41
  • 179
  • 318