Category Archives: 1. Full Stack Web Development

Code First Demo

Open Visual Studio. Create a new Console Application project and named it to CodeFirstDemo Install Entity Framework by using NuGet Package Manager Console PM> Install-Package EntityFramework With code first we start with the code. So we will not going to Management Studio and create a new database. Instead we will create a new class called… Read More »

Database First Demo

We will create a simple database table. Then we will use entity framework to generate a domain class based on that table. The whole process is given below- Open Microsoft SQL Server Management Studio. From Object Explorer Right Mouse click on Database folder -> New Database as shown below- Give the Database Name -> Select… Read More »

Workflows of Entity Framework

There are three workflows to build a domain model using Entity Framework. They are Database First Code First Model First 1. Database First In this case we start with the database. Here- At first we design our tables Then Entity Framework generates domain classes based on the database This is the traditional approach that a… Read More »

What is Entity Framework

If we need to access a database from our application we need a persistence framework. With the persistence framework we will be able to load our objects from database or save them to database. We can write the persistence framework by ourselves using plain ADO.NET classes’ like- SqlConnection SqlCommand SqlDataReader Or we can also use… Read More »

Basic jQuery Attribute filters

Now we will discuss about attribute filters of jQuery. By using attribute filter we can select element by it attribute and the attribute value. Common attribute filters are- $(“[attribute]”) Select all elements those has specified attribute. Example: $(“[class]”).css(“border”,”3px solid red”); Select all the elements from HTML document those contains the class attribute. $(“element[attribute]”) Select all… Read More »

Why we will use Object Oriented Programming

Before OOP programmer were used Procedural programming where code were written in linear fashion i.e. from top to bottom. So when program became larger then programmer faced huge problem to manage and debug the code. So to get rid from such problem taken an attempt and introduced function- break down code into manageable segments. It… Read More »

jQuery filters basic

We already seen that jQuery selectors are very powerful for selecting contents from webpages. Now we will use filters that makes jQuery selectors more powerful. jQuery filters works with selectors and provide more powerful fine-grained control on selecting the elements from HTML document. In jQuery filters are categorized into six(06) different categories. They are- 1.… Read More »

JQuery Selectors

jQuery selectors allows us to select and manipulate HTML elements by their name or id or attributes or type or values. In jQuery all selectors are start with $(). Most common jQuery selectors are- 1. Element Selector 2. Id Selector 3. Class Selector 4. Self-Selector 5. All Elements Selector 6. Attribute Selector 7. Hierarchical Selector… Read More »

Create a Simple jQuery enabled page

Now we will create our simple jQuery enabled page. For our first jQuery example we’re going to keep things simple. What we will do is- Include a reference of jQuery library Then we will write an event handler. It will respond to the page loading in the browser window i.e. our event handler will fire… Read More »

Arrays in JavaScript

Sometimes in our application we need to deal with a list of objects. For instance we might to store a list of products in a shopping cart or the list of colors the use has selected. In such situation we use an array to store that list. Let’s see how we do that- Declare a… Read More »