Click here to Skip to main content
15,867,453 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: code organisation Pin
Calin Negru25-Feb-22 9:41
Calin Negru25-Feb-22 9:41 
GeneralRe: code organisation Pin
Richard MacCutchan25-Feb-22 22:17
mveRichard MacCutchan25-Feb-22 22:17 
GeneralRe: code organisation Pin
Calin Negru26-Feb-22 0:14
Calin Negru26-Feb-22 0:14 
GeneralRe: code organisation Pin
Richard MacCutchan26-Feb-22 1:03
mveRichard MacCutchan26-Feb-22 1:03 
GeneralRe: code organisation Pin
Snesh Prajapati26-Feb-22 5:04
professionalSnesh Prajapati26-Feb-22 5:04 
AnswerRe: code organisation Pin
Greg Utas4-Feb-22 5:52
professionalGreg Utas4-Feb-22 5:52 
AnswerRe: code organisation Pin
jschell17-Feb-22 11:21
jschell17-Feb-22 11:21 
QuestionBest Way To Solve This? Pin
Kevin Marois11-Jan-22 6:32
professionalKevin Marois11-Jan-22 6:32 
Background
I have a WPF app in which I'm using DevExpress Reporting.

To create a report based off a List<t> there is a wizard which allows you to choose "Object Data Source". When you choose that you see a list of entities in your app that are marked with the attribute "[HighlightedClass]". This attribute is defined in the namespace "DevExpress.DataAccess.ObjectBinding".

My WPF UI, DAL, BL, and entities are all defined in seperate projects. This all works fine.

Problem
Now I'm working on a Xamarin Forms project that will use the same DAL, BL, and entities to pull data from the WPF project into an Android app.

My shared mobile project has references to the DAL, BL, and entities. And this is where the problem is... when I deploy to the Android I get deployment errors saying that the Android project can't resolve references to DevExpress assemblies.

I'm sure that if I were to remove the "[HighlightedClass]" attribute from the Entities project then everyting would deploy fine. But then I would not be able to create new reports in the WPF project.

Possible Solution
One idea I have is to create local models in the WPF project for reporting. My UI project could call back into the back end, get back a list of data as LIST<t>, them map them to local models which would use the attribute. This way the attribute only appears in the WPF project where the reporting happens. The Entities project would no longer know about DevExpress. And the Android app would no longer complain about it.

But this is a lot of work and could create maintenance headaches as I would have local Models that are exact duplicates of the Entity classes in the Entites project. I would have to make changes in two places.

I'm open to suggestion here.

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Best Way To Solve This? Pin
englebart15-Feb-22 16:54
professionalenglebart15-Feb-22 16:54 
QuestionWould it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
oofalladeez34328-Dec-21 9:32
professionaloofalladeez34328-Dec-21 9:32 
AnswerRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak28-Dec-21 11:02
mveDave Kreskowiak28-Dec-21 11:02 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:38
jschell30-Dec-21 7:38 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak30-Dec-21 7:39
mveDave Kreskowiak30-Dec-21 7:39 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:44
jschell30-Dec-21 7:44 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak30-Dec-21 7:46
mveDave Kreskowiak30-Dec-21 7:46 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:50
jschell30-Dec-21 7:50 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak30-Dec-21 8:01
mveDave Kreskowiak30-Dec-21 8:01 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 8:12
jschell30-Dec-21 8:12 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
oofalladeez34330-Dec-21 7:44
professionaloofalladeez34330-Dec-21 7:44 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
oofalladeez34330-Dec-21 7:44
professionaloofalladeez34330-Dec-21 7:44 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
MarkTJohnson25-Feb-22 8:40
professionalMarkTJohnson25-Feb-22 8:40 
JokeRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
englebart15-Feb-22 17:00
professionalenglebart15-Feb-22 17:00 
AnswerRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:42
jschell30-Dec-21 7:42 
Questionquantum computing Pin
Calin Negru28-Dec-21 7:13
Calin Negru28-Dec-21 7:13 
AnswerRe: quantum computing Pin
Gerry Schmitz28-Dec-21 7:25
mveGerry Schmitz28-Dec-21 7:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.