Questions tagged [xpo]

XPO is a DevExpress ORM library for .NET.

xpo
Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Can't get XAF/XPO association working as expected

Here is the context: In a XAF (Winforms) solution, we have a Production object which has 2 properties: string Description XPCollection Products [Persistent(@"PRODUCTION")] public partial ...
MensSana's user avatar
  • 551
0 votes
0 answers
96 views

ORM Datamodel not finding MySQLConnector assembly Visual Studio / DevExpress

I created a VisualStudio 22, DevExpress 22.2.4 WinForms Application to do some simple Database viewing etc. The Database is on MariaDB 10. I added Grids, set the DataSource to XPO which created a ...
derYak's user avatar
  • 11
0 votes
1 answer
43 views

DevExpress XPO NonPersistentAttribute vs ObjectProperties

All properties of XPObject descendant class which are foreign keys pointing to another XPObject entities are easily available under ObjectProperties property. I have manually added a custom property ...
Kuba D's user avatar
  • 105
0 votes
0 answers
169 views

Why is Sqlcipher not encrypting a Sqlite database through a .NET Core app?

Newbie here trying to hook up Sqlcipher into a .NET Core (Windows) Sqlite application. We are also using DevExpress XPO. I've tried mirroring the steps outlined in SQLCipher documentation page. It ...
JohnB's user avatar
  • 4,079
1 vote
0 answers
381 views

How to diagnose a unmanaged memory leak in a .NET application [closed]

Here is a image of a profile session of a .NET Framework 4.6.2 WinForms Application that is build on DevExpress XAF and uses XPO as ORM. I'm faced with a memory leak that seems to be residing in ...
Jacob de Boer's user avatar
1 vote
1 answer
128 views

DevExpress XPO Table Extend and common column persistent

I am developing an Application using DevExpress XPO which has PostgreSQL database. I have a class OrderBase and and another class OrderDetails which extends OrderBase. OrderBase has a column ...
Stavros Koureas's user avatar
0 votes
0 answers
93 views

PostgreSQL: Creating case insensitive database supporting three languages (Arabic, English and French)

I am using PostgreSQL 15 01-Is it possible to change the case insensitive of a database after it has been created without losing data (using Collations) 02-How can I be creating case insensitive ...
M.Bouabdallah's user avatar
0 votes
0 answers
84 views

DevExpress XPO makes the COLUMNS_UPDATED() function of the SQL server unusable

I experienced that a DevExpress XPO object belonging to a SQL table updates all columns in the table regardless of whether it has been changed. This has been a problem in our software since we moved ...
mma's user avatar
  • 391
0 votes
1 answer
260 views

unitofwork data in Blazor project is always cached, how to I get the data from the database?

I have inherited a VisualStudio 2019 C# DevExpress Blazor XPO web project with SQL Server database running under IIS and have issues with page data always being cached. The project itself is defined ...
Barry Andrews's user avatar
0 votes
1 answer
187 views

Transact Sql Query with double quotes and field names containing spaces?

I have the following code that produces sql with field names delimited by quotes using DevExpress.Data.Filtering with CriteriaOperator criteria = StockFilter.GetCriteria(); string sWhere = ...
Kirsten's user avatar
  • 17k
0 votes
1 answer
135 views

Is there a way to track when a method of some metadata has been called?

I'm using a NuGet Package called DevExpress.Xpo and its classes are uneditable because they're locked as "metadata". The package contains a class called DataStorePool, and, during runtime, I ...
HasQuestionsAndAnswers's user avatar
1 vote
1 answer
145 views

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 ...
Kirsten's user avatar
  • 17k
0 votes
1 answer
413 views

Devexpress (v21.2): Could not find assembly Npgsql (during using 'DevExpress ORM Data Model Wizard')

The database is Postgresql and I wanted to use DevExpress ORM Data Model Wizard v21.2. I got this error during the process: Could not find assembly 'Npgsql'. I have installed Npgsql already in my ...
x19's user avatar
  • 8,559
1 vote
2 answers
1k views

Create correct Criteria Operator

Trying to create a Criteria.Parse operator when I have to convert the string field to an Int. Operation fails at the follwing: Message=Parser error at line 0, character 15: syntax error; ("...
Trey Balut's user avatar
  • 1,385
2 votes
1 answer
622 views

How to deserialize JSON to XPO objects using the current session?

I have serialized xpo objects into JSON data in separate project using default session. But when I try to de-serialize the same within view controller i am getting default session error. I am able to ...
Ashraf Ali's user avatar
1 vote
1 answer
908 views

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 ...
M.Bouabdallah's user avatar
1 vote
1 answer
250 views

How to make XPO one-to-one relationship with a simple code?

Shortly, Here's a code. It doesn't work. I try to insert property with same key in both table. DevExpress tickets doesn't resolve it also First Ticket and Second Ticket See First Ticket link. see ...
deveton's user avatar
  • 321
1 vote
3 answers
1k views

How to create one to one relationship in DevExpress XPO classes?

Shortly, Here's a schema User Table Category Table A user have a categoryID All I need to populate a GridControl with User_ID, CategoryID, CategoryName Note that CategoryName is only belongs to ...
deveton's user avatar
  • 321
2 votes
2 answers
2k views

How to create DevExpress XPO dynamically with multiple primary-keys table?

I try example in this topic https://github.com/DevExpress-Examples/XPO_how-to-create-an-xpclassinfo-descendant-to-dynamically-build-a-persistent-class-structure-e1729 But It only works for single ...
deveton's user avatar
  • 321
0 votes
1 answer
606 views

Devexpress xaf many to many relationship oid key Name Change

I want to set many to many relationship oid key name. In many to many relationship Oid is created automatically but on database side I want to change oid name to custom name. For Example; If I try to ...
Serdin Çelik's user avatar
0 votes
1 answer
162 views

How to use the fields of the base class to make a union unique index in XPO

Because there are many of the same fields in my entity class, such as id, org_id, etc., I wrote the base class inheritance so that each subclass doesn't need to write these fields anymore. I have a ...
shaohuatsou's user avatar
0 votes
1 answer
132 views

Send devExpress Session as parameter in wcf service

I have an exception when I want to send a devExpress session in a composite type in WCF. I tried to make it serializable but I still get the error information: Type System.Data.SqlClient....
Nouha's user avatar
  • 33
0 votes
0 answers
442 views

Poor performance after switch XPO to Entity Framework

We have switched ORM framework from XPO to Entity Framework. We have been satisfied with the performance working on XPO. Our algorithms contain many read operations on foreign key related ...
Maciej Dzierżak's user avatar
2 votes
0 answers
317 views

Map DTO to Base Model with protected constructor

All my model classes have one public constructor that takes a session / unit of work object (required by the ORM I am using). However, they also inherit from a common base class XPObject with a ...
Sam's user avatar
  • 1,534
6 votes
1 answer
89 views

Keep getting load error in VS2017: Domain object

Cannot load " file reference ": Domain object with ID " guid " has already been defined in this or another domain model. The file to be loaded is a DevExpress xpo data model file and the file itself ...
David's user avatar
  • 978
0 votes
1 answer
443 views

Handles clause requires a WithEvents Callback

Error in CallbackUpdateSchema.Callback BC30506 Visual Basic AND ASP.net Handles clause requires a WithEvents variable defined in the containing type or one of its base types. Callback Imports ...
Dea Ananda's user avatar
4 votes
1 answer
827 views

Setting multiple properties at once in an XPO Object

I've been experimenting with C# and DevExpress and came across a situation for which I cannot find a simple solution. I've got three objects: Book Author Series   A Book has a collection of ...
Peter's user avatar
  • 8,971
-1 votes
1 answer
1k views

How to open a record in DetailView using Oid in XAF WinForms application?

I need to open an existing record in DetailView by taking Oid as user input in a textbox. I have created a custom form and put a textbox and a button to take value of Oid from user and then submit it....
Ahsan Iqbal's user avatar
0 votes
1 answer
472 views

How to set up persistent object for one-to-many and many-to-many at same time? [DevExpress]

I have an issue with next scheme, I attached it.I want to query from my database with only one object with "Manufacturer" class. Like: var res = new XPQuery<Manufacturer>(session); And then ...
Stanislav Balia's user avatar
4 votes
1 answer
424 views

IBodyModelValidator alternative for Asp .NetCore?

I am using Devexpress XPO as ORM and I am going to create an OData Web API with ASP.NET core. Devexpress has created an example in ASP.NET classic and I have one code line (in CS/ODataService/Globals....
El Hippo's user avatar
  • 367
0 votes
1 answer
543 views

Use MiniProfiler with DevExpress XPO (ORM)

I'm trying to setup my project so that MiniProfiler is able to profile XPO's SQL calls. This should have been a very simple endeavor, as MiniProfiler just wraps an ordinary connection but this simple ...
Loudenvier's user avatar
  • 8,674
0 votes
1 answer
431 views

Unable to build Xamarin Forms project to iOS with DevExpress XPO

As soon as DevExpress XPOCore (https://www.nuget.org/packages/DevExpress.Xpo) is referenced in my XamarinForms application iOS refuses to build - All other platforms build fine. (Android and UWP) I ...
MrRobot's user avatar
  • 168
0 votes
2 answers
339 views

Display relationship in a devexpress grid

There are 2 Objects with a relationship between them. Student and Class. Each student has one or more classes. I want to show student in a grid control (devexpress winform) and I prefer not to use ...
mtf's user avatar
  • 329
0 votes
1 answer
893 views

How to update value of a record in XAF, using Oid, from a custom form?

I need to update value of a record in DevExpress XAF, from a custom form, if Oid of a record matches the input I am getting from a textbox. I have tried using UnitofWork by the following code, but it ...
Ahsan Iqbal's user avatar
1 vote
1 answer
138 views

If condition in xpquery

var a = (from t in unitOfWork1.Query<LedgerPosting>().Where(t => t.Oid == 1) group t by new { t.LedgerId.Oid, t.LedgerId.Name, t.LedgerId.OpeningBalance } into grp ...
Rashmi's user avatar
  • 31
4 votes
1 answer
1k views

How to fix "The collection to which the Single aggregate is applied must be empty or contain exactly one item" InvalidOperationException?

Having this query I get an InvalidOperationException: "The collection to which the Single aggregate is applied must be empty or contain exactly one item". List<int> olsesUsedForTaskCompletion = ...
Alexa Adrian's user avatar
  • 1,846
0 votes
2 answers
220 views

How to add unique constraint on a property inherited from Role class in DevExpres, Xpo?

I have a class which inherits Role class. public class WMSRole : Role { //....some properties/relationships } As Role inherits RoleBase and last class has Name property, how could I define this ...
Alexa Adrian's user avatar
  • 1,846
1 vote
2 answers
284 views

XAF. When I add a WinModificationsController for a single DetailView I can't save other DetailsViews

I'm starting a project with XAF and I have done a WinModificationsController for a single DetailsView, but seems that when I add that Controller I can't save DetailViews from other object, so the ...
mrvinent's user avatar
  • 115
0 votes
1 answer
210 views

Get data from old column in DevExpress XPO

I'm trying to develop a migration system for when the database changes. I'm using DevExpress XPO as my ORM so that I can target multiple database types. For column additions, the ORM works fine - ...
Chris's user avatar
  • 1,118
0 votes
1 answer
737 views

Getting the type of properties which belong to an XPO Object

Is there a way to get the type of a property of an XPO Object. Example : my class is User with properties User_name and User_age. I want to get the type of the User_name which is string in that case, ...
M.Othman's user avatar
1 vote
1 answer
1k views

DevExpress eXpressApp Framework and eXpress Persistent Objects : Sort column issue

I am not able to sort column for NonPersistent column. (DevExpress eXpressApp Framework (XAF) and eXpress Persistent Objects (XPO) ) Here my code [Association("PCs-Gs", typeof(Allotments))] public ...
user2960398's user avatar
0 votes
1 answer
566 views

Application Design: Create and persist image thumbnails in XAF/XPO application

I'm developing an application with XPO/XAF and I need to manage photos together with some additional information. This is the simplified (pseudo) code I use for my Photo entity: public class Photo { ...
krombi's user avatar
  • 514
2 votes
1 answer
510 views

devexpress CheckedComboBoxEdit.DataBindings connect to xpcollection

I'm trying to connect xpcollection, below is xpcollection code I'm using: Private Agent As New XPCollection(Of clAgent)(UOW) I would like data from this collection to be visible in ...
TaZz's user avatar
  • 662
0 votes
1 answer
575 views

How to define a custom Validation for a property in DevExpress?

Please consider that I have in an entity a property public double RealVolume { get { return _RealVolume; } set ...
Alexa Adrian's user avatar
  • 1,846
1 vote
1 answer
2k views

Replace Devexpress XPO to Entity Framework

I am working on an ASP.NET MVC web application that was built with DevExpress 12.1 tools including DevExpress XPO. Due to licensing issue, I have task in which I want to remove Devexpress components ...
Ajay2707's user avatar
  • 5,760
1 vote
2 answers
1k views

Devexpress lookup edit select one fill in rest lookups

I'm working on program which uses xpo collection to get and update data from and to database. I setted up lookupedit to get data from another database(country name) I would like another lookupedit (...
TaZz's user avatar
  • 662
0 votes
1 answer
539 views

C# XAF XPO Add category to listview

Im new and working with DevExpress/XAF/XPO frameworks, library added: businessobjects, and I got a question. I want to 'simply' add a category to a listview item. In my BusinessObjects I created a ...
Terry's user avatar
  • 3
0 votes
1 answer
1k views

XPODataSource: Select from TableValuedFunctions

Is it possible to select from a tabled-valued function using xpoDataSource instead of selecting from a table. note: Im using xpoDatasource with serverMode = true
Sepehr Davarnia's user avatar
0 votes
1 answer
230 views

Complex rule for XPO class

I want to accomplish a simple rule for an XPO class. The situation is as : - I have a Vehicle class : public class Vehicle : BaseObject { public Vehicle(Session session) : base(session) ...
Ismail's user avatar
  • 290
1 vote
1 answer
356 views

nested unit of work and making unwanted object

I have 3 forms in my application : frmTrucks, frmEditTruck and frmEditContent. frmTrucks shows my Trucks in a grid. I add a truck, or choose one of the trucks from the grid to edit in frmEditTruck ...
mtf's user avatar
  • 329