Click here to Skip to main content
15,913,854 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionReverse Name Assignment Pin
Shadow Sprite31-Mar-06 0:30
Shadow Sprite31-Mar-06 0:30 
AnswerRe: Reverse Name Assignment Pin
hbk72331-Mar-06 1:27
hbk72331-Mar-06 1:27 
AnswerRe: Reverse Name Assignment Pin
Dave Kreskowiak31-Mar-06 5:44
mveDave Kreskowiak31-Mar-06 5:44 
GeneralRe: Reverse Name Assignment Pin
Dan Neely31-Mar-06 6:01
Dan Neely31-Mar-06 6:01 
GeneralRe: Reverse Name Assignment Pin
Dave Kreskowiak31-Mar-06 6:59
mveDave Kreskowiak31-Mar-06 6:59 
GeneralRe: Reverse Name Assignment Pin
Shadow Sprite1-Apr-06 13:52
Shadow Sprite1-Apr-06 13:52 
QuestionHow to create a new certificate file using .net? Pin
superSYNC30-Mar-06 17:17
superSYNC30-Mar-06 17:17 
QuestionEnterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
Mr Brown Shoes30-Mar-06 14:05
Mr Brown Shoes30-Mar-06 14:05 
Hi,
From an architectural perspective is it best to use the DatabaseFactory.CreateDatabase() method once at the top of a method call stack, and pass its reference to each method in the stack that needs database access, or should each method in the data-layer use the DatabaseFactory.CreateDatabase() method internally. Clearly the first approach uses less resources, as quite a lot of code is utilised by the DatabaseFactory.CreateDatabase() method, including reading the web.config file, however the second approach keeps the Data Layer tightly cohesive and loosely coupled from other sections.

For example let’s examine a web service solution. Assuming that the service document has a web method, which in-turn calls a business facade. The facade then forwards necessary information to one or more 'information managers'. These then utilise 'data managers' which provide scalar values, Datasets etc required for their calculations. Should each method in the data managers use DatabaseFactory.CreateDatabase() to get a connection to the DB for executing various commands, or should this be called once at the business facade level and a reference passed to each Info manager which in-turn pass to respective data managers?

Could anyone make a recommendation based on experience?

Thanks in advance.
AnswerRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
AhClem31-Mar-06 9:49
AhClem31-Mar-06 9:49 
QuestionRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
Mr Brown Shoes31-Mar-06 14:52
Mr Brown Shoes31-Mar-06 14:52 
AnswerRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
AhClem1-Apr-06 5:35
AhClem1-Apr-06 5:35 
QuestionRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
Mr Brown Shoes2-Apr-06 14:25
Mr Brown Shoes2-Apr-06 14:25 
AnswerRe: Enterprise Library, Data Access Application Block (DAAB), Best Practicises Question Pin
AhClem2-Apr-06 19:36
AhClem2-Apr-06 19:36 
QuestionGeneric collections databinding question Pin
Stan Shannon30-Mar-06 5:31
Stan Shannon30-Mar-06 5:31 
QuestionSystem.Reflection and COM object Pin
doudou3130-Mar-06 5:18
doudou3130-Mar-06 5:18 
QuestionTargeting .net version Pin
Abdd0n30-Mar-06 1:53
Abdd0n30-Mar-06 1:53 
AnswerRe: Targeting .net version Pin
Vasudevan Deepak Kumar30-Mar-06 20:38
Vasudevan Deepak Kumar30-Mar-06 20:38 
QuestionHelp me to use NHibernate Pin
Balavardhan28-Mar-06 18:39
Balavardhan28-Mar-06 18:39 
QuestionStarting a console application within a windows service application Pin
Walter Vanhimbeeck28-Mar-06 3:43
Walter Vanhimbeeck28-Mar-06 3:43 
AnswerRe: Starting a console application within a windows service application Pin
Walter Vanhimbeeck28-Mar-06 22:10
Walter Vanhimbeeck28-Mar-06 22:10 
QuestionWorking directory of another process? Pin
blitr28-Mar-06 3:23
blitr28-Mar-06 3:23 
QuestionStop installation using script program Pin
monakolanji28-Mar-06 1:04
monakolanji28-Mar-06 1:04 
Questionweb cam motion detection Pin
mrbhp27-Mar-06 10:22
mrbhp27-Mar-06 10:22 
AnswerRe: web cam motion detection Pin
CWIZO27-Mar-06 21:05
CWIZO27-Mar-06 21:05 
QuestionNET Framework Version 2.0 on windows 2000 professionnal edition Pin
ss200627-Mar-06 8:30
ss200627-Mar-06 8:30 

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.