Problem solving while programming, using object oriented design always starts with the questions like:
1. What Objects should be created to solve this problem?
For example, if we are making a project for arranging books in a library, then the objects that come to mind will be the books, the shelves we keep them in, inventory book, the catalog etc.
2. What are the properties of the object?
A property is something that defines the characteristics of the object. In our problem, a few properties are, the subject the book is based on, its author, the number of books a shelf can hold in, (more…)
Microsoft today revealed details of Visual Studio 2010 (code-named “Rosario”) and .NET framework 4.0. This next generation ‘Integrated Development Environment’ focuses on the following five points as given in the Visual Studio 2010 webpage.
With the release of .NET framework 3.5, Microsoft introduced lots of new features. One of the very important feature introduced is LINQ, which stands for Language Structured Integrated Query. I have been studying LINQ since the last 2 months and I find it an excellent approach to data management. In this post, I will give a brief overview about it.
While writing a software, at some point of time we write code which deals with data. The data can be in any form; files stored locally on a computer, tables in a database or even XML documents. While dealing with data when we are creating applications using .NET, at times we may have to carry objects to a database and then load the results back to the object after querying the database.
The following pseudocode will explain this approach.
Students Stu = New Students(); // A class which represents a table of students
Stu.stuID = 5; // Setting the row identifier to 5
Stu.Retrieve(); // Retrieving Row’s data where Student ID = 5
Stu.Name = “Pushkar Arora”; // Changing the column ‘Name’ value to Pushkar Arora
Stu.Update(); // Updating the Database data
A real cool and simple approach, isn’t it? Now to implement this, in ADO.NET we do the following. (more…)