Wednesday, May 9, 2007

Day 1 - Architecture and tiers

midday ish...
1-tier application. Put everything in aspx page (or code behind) eg data connection, SQL selects (or even Stored Procs's). Just like dave1 example did earlier. SqlDataSource and Gridview all on one page.

2-tier. Presentation layer and Data layer. http://www.asp.net/learn/dataaccess/tutorial01vb.aspx?tabid=63 Here is an example of this.

3-tier. Presentation (eg aspx), Business, Data. Generally uses a common library too.

Entity Model

Quiz ---- User


Question Response

eg Response would have as properies
- Given Answer (text)
- Validity of Answer (enum)
- Correct
- Clue needed
- Gave up

Data Transfer
Options included:

- Business Objects eg a helloworld business object can have properties of .id .Description and .FullName (which could be a concatenation of id and description). Went for this as it is easier at this stage for future development.

- Structs - this is like a lightweigt class

- Typed Datasets - this class is created by a tool in VS.

No comments: