XPO is a DevExpress ORM library for .NET.
Questions tagged [xpo]
100 questions
0
votes
1 answer
Resolving a DevExpress.Xpo.Exceptions.SessionMixingException
I'm adding an object to another object like so:
Foo foo = new Foo();
AnotherClass.bar.add(foo); // bar is getting assigned with dependency injection in AnotherClass
This causes a DevExpress.Xpo.Exceptions.SessionMixingException as…

ThoughtCrhyme
- 517
- 3
- 8
- 18
0
votes
1 answer
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 create Person and Task many to many relation.…

Serdin Çelik
- 165
- 1
- 4
0
votes
2 answers
DevExpress XPO wrapping existing table relationships
I'm experimenting with XPO and attempting to wrapper some existing tables. Does anyone have experience with doing this? The problem I'm running into is determining how XPO determines the names of the linking fields for relationships.
For example, I…

Sophtware
- 1,796
- 2
- 21
- 34
0
votes
1 answer
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 base class:
[OptimisticLocking(false),…

shaohuatsou
- 1
- 1
0
votes
1 answer
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.SqlConnection with data
contract name
…

Nouha
- 33
- 13
0
votes
0 answers
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 collections thus we need these up to date and also there are…

Maciej Dzierżak
- 1
- 1
- 3
0
votes
1 answer
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 DevExpress.Xpo
Imports…

Dea Ananda
- 115
- 1
- 10
0
votes
1 answer
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(session);
And then query all info that are related to my condition in…

Stanislav Balia
- 385
- 1
- 12
0
votes
1 answer
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 approach doesn't work. Here's the code that…

Loudenvier
- 8,362
- 6
- 45
- 66
0
votes
1 answer
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 must add this issue is apparent when building to my…

MrRobot
- 169
- 3
- 10
0
votes
2 answers
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 master detail. I want to show classes in a single…

mtf
- 329
- 2
- 13
0
votes
1 answer
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 doesn't work:
UnitOfWork uow = new…

Ahsan Iqbal
- 41
- 2
- 6
0
votes
1 answer
Creating Web-service for modifying XPO objects by timer
I have several clients that create new objects. When new object is created I need to start a timer that will change some object properties when time is elapsed (each object can be visible only for defined client groups certain time).
I want to use…

johnny
- 1,241
- 1
- 15
- 32
0
votes
1 answer
sharing XPObject object between threads
I am evaluating XPO, so far so good, really like it.
I have a background thread do monitoring a directory, when it find a new file is added it parse the file name, and store this object to datastore and then fire an event with the object as arg,…

Benny
- 8,547
- 9
- 60
- 93
0
votes
2 answers
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 unique rule on Name?
Later update:
this is the…

Alexa Adrian
- 1,778
- 2
- 23
- 38