Questions tagged [xpo]

XPO is a DevExpress ORM library for .NET.

100 questions
22
votes
9 answers

Any thoughts on DevExpress XPO ORM Package?

XPO is the object relational mapper of choice at my company. Any thoughts on the pros and cons? I was just looking for general feeling and anecdotes about the product. We are not switching to XPO. We are just getting rid of hard coded sql strings…
Ben McNiel
  • 8,661
  • 10
  • 36
  • 38
6
votes
1 answer

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 has successfully loaded on at least 3 prior…
David
  • 958
  • 2
  • 12
  • 29
6
votes
4 answers

DevExpress XPO vs NHibernate vs Entity Framework: database upgrading issue

What is the best practice for upgrading the database using ORM (DevExpress XPO, NHibernate or MS Entity Framework)? I'm starting a new project and have to pick an ORM. The development process requires of releasing intermediate test builds quite…
Alex Klaus
  • 8,168
  • 8
  • 71
  • 87
4
votes
1 answer

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 Authors (Many-to-Many) An Author has a Collection of…
Peter
  • 8,776
  • 6
  • 62
  • 95
4
votes
1 answer

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.asax.cs, Line 13) that I cannot "convert" because…
El Hippo
  • 367
  • 3
  • 13
4
votes
1 answer

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 olsesUsedForTaskCompletion = new…
Alexa Adrian
  • 1,778
  • 2
  • 23
  • 38
3
votes
2 answers

Dynamic LINQ. No property or field 'FieldName' exists in type 'ClassName'

My LINQ query is as follows Dim Query = From t In New XPQuery(Of xUser)(Xpo.Session.DefaultSession) .Where("Name=John").Select("new (Name as FirstName)") Unfortunately i get the error No property or field 'John' exists in type 'xUser' Of course no…
OrElse
  • 9,709
  • 39
  • 140
  • 253
3
votes
4 answers

DevExpress eXpressApp Framework (XAF) and eXpress Persistent Objects (XPO): how do I speed up the loading time of associations?

I am having a problem with the speed of accessing an association property with a large number of records. I have an XAF app with a parent class called MyParent. There are 230 records in MyParent. MyParent has a child class called MyChild. There are…
MindModel
  • 822
  • 1
  • 10
  • 22
3
votes
1 answer

How to save persistent objects databound to a DataLayoutControl (DevExpress tools)?

I have a small form displaying the DataLayoutControl component. If I use a GridControl the objects get saved. If I use the DataLayoutControl (which shows them individually) they do not get saved after they are changed. The underlying object is…
Tomas Pajonk
  • 5,132
  • 8
  • 41
  • 51
3
votes
3 answers

.NET ORM that supports multithreading better?

I know questions about .net ORM have been asked thousands of times, but i want to know which ORM is easy to work with in a multithreaded environment. Commercial or Free are both welcomed. Currently, I am using XPO from Devexpress, but i feel it…
Benny
  • 8,547
  • 9
  • 60
  • 93
3
votes
1 answer

Does it make sense to use Repository pattern with (eg.) DevExpress XPO?

As far as I've been studying the Repository pattern, the "repositories" should be responsible for data persisting and basic querying tasks, and only for that. So in a typical repository I see something like this: public interface IProductRepository…
Zoltán Tamási
  • 12,249
  • 8
  • 65
  • 93
3
votes
2 answers

Tips for Migrating from XPO to LINQ to SQL

I'm a long-time user of the DevExpress XPO library. It has many great features, but there are a few weaknesses: When saving an existing object, all properties are sent in an update query; changes are tracked on a per-object basis, not…
Jacob
  • 77,566
  • 24
  • 149
  • 228
2
votes
1 answer

devexpress XPO calculated property on child collection select n + 1

I have a XPO domain object Order which has a association with OrderLine. In order I have a property Profit which is implemented as public decimal Profit { get { decimal result = 0; foreach (OrderLine ol in this.OrderLines) …
olle
  • 4,597
  • 24
  • 28
2
votes
1 answer

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 get the current session but I am not sure how to…
Ashraf Ali
  • 31
  • 2
2
votes
2 answers

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 primary key tables. So i searched more Found…
deveton
  • 291
  • 4
  • 26
1
2 3 4 5 6 7