Click here to Skip to main content
15,915,674 members
Home / Discussions / C#
   

C#

 
AnswerRe: Very basic OOP question Pin
arya168514-Oct-11 7:19
arya168514-Oct-11 7:19 
Questionajax refersh Pin
rupali srivastava13-Oct-11 10:22
rupali srivastava13-Oct-11 10:22 
AnswerRe: ajax refersh Pin
JP_Rocks20-Oct-11 3:27
JP_Rocks20-Oct-11 3:27 
QuestionUdpClient access denied exception Pin
David Knechtges13-Oct-11 8:48
David Knechtges13-Oct-11 8:48 
AnswerRe: UdpClient access denied exception Pin
Richard Andrew x6413-Oct-11 11:15
professionalRichard Andrew x6413-Oct-11 11:15 
AnswerRe: UdpClient access denied exception Pin
BobJanova13-Oct-11 22:15
BobJanova13-Oct-11 22:15 
QuestionC# ASP.NET Architecture .. Which one should we use ? Pin
UBX13-Oct-11 4:44
UBX13-Oct-11 4:44 
AnswerRe: C# ASP.NET Architecture .. Which one should we use ? Pin
BobJanova13-Oct-11 5:28
BobJanova13-Oct-11 5:28 
Personally, I'd say 1 is better (with the proviso that it doesn't have to be different projects unless some of it is common between applications; it can all live in one assembly), because only the data access layer should need to look at data in a database oriented way. Yes, you can create DataTables in code, but they are a database approach and lists of business objects is likely to be much more usable for business layer code.

Passing data tables over WCF sounds like a bad idea. That means that in (2), the database, data and business layers would have to be in the same process. In (1), the data layer and the database would need to be, but not the business layer, as long as you make your business data objects* serialisable (which if you're planning to use WCF in any reasonable way they would have to be).

* - by 'data objects' here I mean objects which contain data and which need to be passed around between modules, i.e. externally accessible method parameters, properties or return types. Typically these classes will include ones derived from table entries, as well as some higher level ones created during business logic but not persisted to the database.

The presentation classes needing to know about database information (I guess that's what you mean by it performing CRUD?) also sounds like a pretty bad idea.
GeneralRe: C# ASP.NET Architecture .. Which one should we use ? Pin
UBX13-Oct-11 6:30
UBX13-Oct-11 6:30 
AnswerRe: C# ASP.NET Architecture .. Which one should we use ? Pin
Eddy Vluggen13-Oct-11 8:10
professionalEddy Vluggen13-Oct-11 8:10 
QuestionXPath expression Pin
NarVish13-Oct-11 2:31
NarVish13-Oct-11 2:31 
AnswerRe: XPath expression Pin
PIEBALDconsult13-Oct-11 3:18
mvePIEBALDconsult13-Oct-11 3:18 
GeneralRe: XPath expression Pin
NarVish13-Oct-11 3:26
NarVish13-Oct-11 3:26 
GeneralRe: XPath expression Pin
NarVish18-Oct-11 1:41
NarVish18-Oct-11 1:41 
GeneralRe: XPath expression Pin
PIEBALDconsult18-Oct-11 2:44
mvePIEBALDconsult18-Oct-11 2:44 
GeneralRe: XPath expression Pin
NarVish18-Oct-11 2:47
NarVish18-Oct-11 2:47 
GeneralRe: XPath expression Pin
NarVish18-Oct-11 3:22
NarVish18-Oct-11 3:22 
GeneralRe: XPath expression Pin
PIEBALDconsult18-Oct-11 14:35
mvePIEBALDconsult18-Oct-11 14:35 
GeneralRe: XPath expression Pin
NarVish18-Oct-11 18:30
NarVish18-Oct-11 18:30 
GeneralRe: XPath expression Pin
NarVish18-Oct-11 21:46
NarVish18-Oct-11 21:46 
GeneralRe: XPath expression Pin
NarVish18-Oct-11 22:36
NarVish18-Oct-11 22:36 
GeneralRe: XPath expression Pin
PIEBALDconsult19-Oct-11 2:41
mvePIEBALDconsult19-Oct-11 2:41 
GeneralRe: XPath expression Pin
NarVish20-Oct-11 3:47
NarVish20-Oct-11 3:47 
GeneralRe: XPath expression Pin
PIEBALDconsult20-Oct-11 14:47
mvePIEBALDconsult20-Oct-11 14:47 
Questiondynamically create table row and bind database value to it Pin
reogeo200813-Oct-11 1:13
reogeo200813-Oct-11 1:13 

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.