Click here to Skip to main content
16,011,475 members
Home / Discussions / C#
   

C#

 
AnswerRe: Regarding XML loading [modified] Pin
J4amieC19-May-08 2:05
J4amieC19-May-08 2:05 
AnswerRe: Regarding XML loading Pin
Mike Dimmick19-May-08 2:25
Mike Dimmick19-May-08 2:25 
QuestionVS 2005 Image control Pin
Dextter19-May-08 1:33
Dextter19-May-08 1:33 
AnswerRe: VS 2005 Image control Pin
leppie19-May-08 2:30
leppie19-May-08 2:30 
QuestionSolution Structure Pin
mark_w_19-May-08 0:44
mark_w_19-May-08 0:44 
AnswerRe: Solution Structure Pin
Christian Graus19-May-08 0:50
protectorChristian Graus19-May-08 0:50 
GeneralRe: Solution Structure [modified] Pin
mark_w_19-May-08 0:52
mark_w_19-May-08 0:52 
AnswerRe: Solution Structure Pin
Simon P Stevens19-May-08 1:02
Simon P Stevens19-May-08 1:02 
mark_w_ wrote:
but they need to reference each other which you cant do.


This sounds like it's slightly wrong. If you think about it, your business objects should not need to reference your data access layer. Why would your business objects need to know anything about how/where they are saved?

What I've got is an assembly called DataObjects, which is the basic business objects the app uses. They are pretty much dumb classes and don't really do anything beyond serving as storage structures. This assembly references nothing else apart from the basic .net stuff.

I have a DataAccess assembly which contains the classes that do things like load/save the DataObjects, this references the DataObjects assembly.

Then I've got a BusinessLogic assembly. This references both of the others and provides things like validation checks etc.

From the GUI level, the app doesn't reference the DataAccess assembly directly. Instead it references the BusinessLogic assembly and any saves/loads are performed through that.

Simon

AnswerRe: Solution Structure Pin
tgrt19-May-08 1:43
tgrt19-May-08 1:43 
QuestionGlobalization question Pin
Glen Harvy19-May-08 0:28
Glen Harvy19-May-08 0:28 
AnswerRe: Globalization question Pin
carbon_golem19-May-08 1:57
carbon_golem19-May-08 1:57 
GeneralRe: Globalization question Pin
Glen Harvy19-May-08 2:18
Glen Harvy19-May-08 2:18 
QuestionHow to create custom control Pin
Krish Agn19-May-08 0:23
Krish Agn19-May-08 0:23 
AnswerRe: How to create custom control Pin
Christian Graus19-May-08 0:32
protectorChristian Graus19-May-08 0:32 
GeneralRe: How to create custom control Pin
Krish Agn19-May-08 0:54
Krish Agn19-May-08 0:54 
GeneralRe: How to create custom control Pin
Christian Graus19-May-08 0:58
protectorChristian Graus19-May-08 0:58 
GeneralRe: How to create custom control Pin
Krish Agn20-May-08 0:06
Krish Agn20-May-08 0:06 
QuestionClass library for file compression Pin
Krishnaraj Barvathaya B19-May-08 0:21
Krishnaraj Barvathaya B19-May-08 0:21 
AnswerRe: Class library for file compression Pin
Christian Graus19-May-08 0:33
protectorChristian Graus19-May-08 0:33 
GeneralRe: Class library for file compression Pin
dan!sh 19-May-08 1:38
professional dan!sh 19-May-08 1:38 
AnswerRe: Class library for file compression Pin
Guffa19-May-08 2:25
Guffa19-May-08 2:25 
AnswerRe: Class library for file compression Pin
Mike Dimmick19-May-08 2:31
Mike Dimmick19-May-08 2:31 
QuestionAbout:Moving child window along with Parent Window Pin
RameshwerE19-May-08 0:09
RameshwerE19-May-08 0:09 
AnswerRe: About:Moving child window along with Parent Window Pin
Christian Graus19-May-08 0:16
protectorChristian Graus19-May-08 0:16 
GeneralRe: About:Moving child window along with Parent Window Pin
RameshwerE19-May-08 0:39
RameshwerE19-May-08 0:39 

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.