Few Questions
Dernier message 20 oct. 2009 01:51 par eurowise. 4 Réponses.
Version imprimable
Tri:
RetourRetour SuivantSuivant
Vous n'etes pas autorisé a poster une réponse.
Auteur Messages
devoas
New Member
New Member
Posts:7

--
06 oct. 2009 05:04  
There are few Questions:

1. Why it is requried to give Reference of DataLayer in UI. I want UI Developers not to use Data Layer directly, but if Remove DataLayer Reference from UI Project, Entity Classes GetData Method does not work but BLList work....

2. Is there any possiblity of Creating Business Layer and Data Layer in one Go. As If I dont need UI, I cannot generate Business Layer and Data Layer as seperate Project under one Solution. If I generate Business layer seperately, it combine the codes for DataLayer in same Project.

Thanks
Devoas
eurowise
Basic Member
Basic Member
Posts:205

--
07 oct. 2009 05:05  
1- Which UI are you using (Win, Web or WPF)
2- There is not a possiblity for the moment. You can always create a windows three tier applications and discard the win application.

Philip
devoas
New Member
New Member
Posts:7

--
07 oct. 2009 08:55  
1. I am using Winform

Devoas
devoas
New Member
New Member
Posts:7

--
20 oct. 2009 05:04  
1. How can I remove the Reference of Datalayer from Winform Project because once I remove the Ref of Datalayer dll from winform code does not compile and give message that

The type 'PrjTest_CC4.DataLayer.DTCustomerView' is defined in an assembly that is not referenced. You must add a reference to assembly 'PrjTest_CC4.DataLayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. F:\My Documents\Visual Studio 2008\Projects\PrjTest_CC4\PrjTest_CC4.Winform\Data Entry Controls\frmWinCustomerViewControl.cs 170 17 PrjTest_CC4.Winform


2. In version 4.0, Winform / Web Project both codes are generated....... Why there is no way to either go for Web Project or Winform Project or simply DAL/BAL

Thanks.
eurowise
Basic Member
Basic Member
Posts:205

--
20 oct. 2009 01:51  
Question 1:

Code Complete generates two overloaded GetRecord methods in the Editable classes, one that has an ID paramater and another that has DT project parameter. The UI has a reference to BL project and since the the method exposes a parameter that is part of the DL, the compiler requires the UI to have also a reference to the DL.

Question 2:
Yes you can generate a win, a web or just DAL/BAL. You can do that by just leaving the TextBox name for either the Win or the Web or both empty.

Philip
Vous n'etes pas autorisé a poster une réponse.

Active Forums 4.1
NOT LICENSED FOR PRODUCTION USE
www.activemodules.com
Connexion / Inscription