Archive Page 2

Slides for the last lecture…

… is now available from the Schedule page. See you tomorrow (sorry for the late update).

Project desciption

The project description is now available. I will be presenting the project on Tuesday and answer any related questions.

Lecture week 46

Slides for the lecture on Tuesday, week 46 is now online. Note that will revisit the previous talk on patterns from the “Patterns I“ lecture, as well as move in discussion of new patterns in the “Patterns II” lecture. Even though many of you say that you know these patterns, I still have a feeling that some sort of repetition in the context of the OOAD book would be beneficial.

Note that there are no (new) assignment for this week — use the time to get the existing ones done and start preparing for the project.

The lecture Thursday …

… Nov. 15th is moved to Tuesday Nov. 20 since our external lecturer couldn’t make it anyway.

EF & ASP.NET example and office hours

We have had the last C# lecture this week. Form next week I will be available at ITU on tuesdays in 4D04.

Today at lecture we went through and example of how the entity framework can be used with the data binding capabilities of ASP.NET component. We have also seen what changes are needed when entity relations are involved. Note that data binding is a good tool for prototyping, but that in production code you might want to have more control over your database connection and queries.

Here is the code produced during the demonstration. Note that the example is associated to the database on my own machine. To run the code you need to change the database connection and generate the needed tables and data.

Hint on User Administration

While developing a prototype, you might what to use the Login and Authentication functionality of ASP.NET in your web application. ASP.NET provides you with a Login control and a CreateUserWizard control. Both these controls expect a specific table structure in a database in order to work.

This might not be ideal if your backend system already has a dataset for users. A simple way around this is to use the CreatedUser event from the CreateUserWizard. Within the event you can then add the code to create a uses within your backend system (sometimes it might be useful to extend the User table in the backend to incorporate the user_id of the ASP.NET authentication framework so things can be easily matched).

You can also use the customize option of the CreateUserWizard control to add extra fields.

MySQL and VS.NET 2012

There seems to be a problem with VS.NET 2012 and the MySql connector. In order to make the connector work within VS you have to install the latest beta version of the MySQL connector.

The problem is that this new connection does not work with the version of MySQL installed at ITU. If you want to use the new connection you will then have to host your own MySQL server or find a hosting that has a compatible version.

ASP.NET and Entity Framework Tutorial

Here is a very interesting tutorial on using ASP.NET data binding and the Entity Framework.

You might find this very useful during your project.

Here is also a copy of the web programming chapter from my other book bevics2010_ch18. Use the same password as last time in order to open the file.

Slides & Assignment for week #45 are online…

here and here.

Project Description is now online…

A description of the overall setup for the BDSA 2012 Project is now available. The content of the project - i.e. what you are supposed to make in C# - is not available yet. This will be available later in order to make sure than you don’t have a head start on this. What is available is, however, a description of how you are supposed to work during the project and what i required from you. In particular you should notice that you need to form groups of no more than 5 persons (upper limit set by the ITU regulations). You now have some time to start preparing for the project.

« Previous PageNext Page »