B
Big George
Hello,
What do you think is the proper way (best practices) to develop a
project in ASP.NET?
I mean, how should I structure the .aspx, .vb, .js and .css files in a
project?
A solution can have one or multiple projects. I think if the web
application is going to be big, then it justifies to have several
projects in a solution.
But if the web application is medium/small, then a solution can
contain one project.
How to structure an asp.net project (.vbproj)?
By theory, best practices are:
- Presentation Tier: aspx, Jscript, aspx.vb
- Business Logic Tier: Business Objects and Rules. Data Manipulation
and Transformation into Information
- Data Access Tier: Interfaces with the Database. Handles all Data I/
O. Made to scale, usually stateless
- Data Tier: Storage. Query & storage optimization. Performance
(indexing, etc)
A question that I have is: "Business Logic Tier" has to be a different
namespace? "Data Access Tier" has to be a different namespace?
This Solution Explorer structure is well developed?
- Solution_Name
- Project_Name
My Project
App_Data
+ images
+ temp
+ BL
BL_Class_1.vb
BL_Class_2.vb
BL_Class_3.vb
+ DA
DA_Class_1.vb
DA_Class_2.vb
DA_Class_3.vb
+ Styles
css_1.css
css_2.css
Default.aspx
Web.Config
WebForm_1.aspx
WebForm_2.aspx
WebForm_3.aspx
WebForm_4.aspx
And now, how to structure my Business and DataAccess classes?
- For every webform, should I have one BL and one DA class?
Like: WebForm_1.aspx <-> Class_BL_1.vb <-> Class_DA_1.vb
- Should my BL and DA classes be abstract concepts?
Like: Customer_BL.vb, Payroll_DA.vb, Banks_BL.vb and WebForm_1.aspx,
WebForm_2.aspx, etc
- In some projects I have seen: for each database table, there is a BL
and DA class.
Like: database_Table_1 <-> Class_BL_1 <-> Class_DA_1
Is that a proper way to develop classes?
Thank you very much.
What do you think is the proper way (best practices) to develop a
project in ASP.NET?
I mean, how should I structure the .aspx, .vb, .js and .css files in a
project?
A solution can have one or multiple projects. I think if the web
application is going to be big, then it justifies to have several
projects in a solution.
But if the web application is medium/small, then a solution can
contain one project.
How to structure an asp.net project (.vbproj)?
By theory, best practices are:
- Presentation Tier: aspx, Jscript, aspx.vb
- Business Logic Tier: Business Objects and Rules. Data Manipulation
and Transformation into Information
- Data Access Tier: Interfaces with the Database. Handles all Data I/
O. Made to scale, usually stateless
- Data Tier: Storage. Query & storage optimization. Performance
(indexing, etc)
A question that I have is: "Business Logic Tier" has to be a different
namespace? "Data Access Tier" has to be a different namespace?
This Solution Explorer structure is well developed?
- Solution_Name
- Project_Name
My Project
App_Data
+ images
+ temp
+ BL
BL_Class_1.vb
BL_Class_2.vb
BL_Class_3.vb
+ DA
DA_Class_1.vb
DA_Class_2.vb
DA_Class_3.vb
+ Styles
css_1.css
css_2.css
Default.aspx
Web.Config
WebForm_1.aspx
WebForm_2.aspx
WebForm_3.aspx
WebForm_4.aspx
And now, how to structure my Business and DataAccess classes?
- For every webform, should I have one BL and one DA class?
Like: WebForm_1.aspx <-> Class_BL_1.vb <-> Class_DA_1.vb
- Should my BL and DA classes be abstract concepts?
Like: Customer_BL.vb, Payroll_DA.vb, Banks_BL.vb and WebForm_1.aspx,
WebForm_2.aspx, etc
- In some projects I have seen: for each database table, there is a BL
and DA class.
Like: database_Table_1 <-> Class_BL_1 <-> Class_DA_1
Is that a proper way to develop classes?
Thank you very much.