investnas.blogg.se

Devexpress xpo
Devexpress xpo






devexpress xpo

Go and check your database and you will have an Item Table with a record of “Mi first Xpo Object in Xamarin”.įirst: We call persistent objects to all class derived from XPO Classes.

devexpress xpo

Object.Description = "My first Xpo Object in Xamarin" Create your UnitOf Work and your Persistent Object XpoHelper.InitXpo(connectionString) //This is just need it once at the App.cs level Static readonly Type EntityTypes = new Type Ĭreate an instance of it. Adding the XPO helper static class public static class XpoHelper Net Standard Project as well as your platform specific projects.

#Devexpress xpo install

In a Xamarin solution, you would install this package in your. Install-Package DevExpress.Xpo -Version 18.1.6 (or any version available by the time you read this) Installing XPOįor the majority of scenarios, installing XPO is as simple as installing the XPO Nuget package: In this article, we will focus on step 1 of XPO in Xamarin but the concepts explained here apply to any other platform and I will highlight when it doesn’t. Big Disclaimer: All of my information really comes from their documentation and tickets (they do have really good information), but I would argue some platform independent simplification of the XPO getting started here and here will do wonders for the novice developer. Some of their articles assume a lot of knowledge on our side and their tickets are somewhat sparse between all their versions. Don’t get me wrong I like to know what is happening behind door number 1, (I believe XPO is ORM number 1 in my toolbox) but as an end user, as a consumer, all I need is: What do I do? How do I do it? How long it takes?ĭevExpress has amazing support, there is no denying of that, but some of their tutorials leave a lot to be desired. XPO was handling all of that backend pain in my behalf, and although really mysterious it solved my problems fast and elegantly. If I wanted to use a different database it was as simple as changing my connection string. I had no idea what was going on, but I knew that if I derived my classes from XPObject or BaseObject (if you use XAF), I automatically had my classes turned into tables in a database of my choosing, I had an autogenerated Built-in OID key, Deferred Object Deletion, and Optimistic Locking. When I first started with XPO I could swear there was something magic involved in how it was handling my data.

devexpress xpo

“Faith is taking the first step even when you don’t see the whole staircase.” – Martin Luther King








Devexpress xpo