Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
C#: ADO. net For Beginners
Rating: 3.8 out of 5(25 ratings)
1,624 students
Created bySuprio Dutta
Last updated 4/2023
English

What you'll learn

  • Insert ,Update,Delete ,SelectALL form Table
  • Search Based Project,CRUD Operations
  • Working with stored Procedures in code behind,working with management studio
  • working with Stored procedure in management studio

Course content

2 sections25 lectures2h 37m total length
  • ADO.NET Overview,Web Config,SQL Server Installation(resource file)1:44
  • client-server Architecture1:28
  • Create DATABASE ,Create Table4:32

    Learn how to create a database table in SQL using the create table syntax, define columns with data types, and set a primary key in a SQL Server environment.

  • Alter Table6:45

    Learn how to use alter table to add, drop, and modify columns in an existing table, with examples like adding an email field to customers and changing its data type.

  • Drop table,Database4:42
  • Insert query8:47
  • Update Query8:14
  • Or clause5:30

    Master the or clause in sql by querying the persons table to fetch last name, age, and city where age > 35 or city = Bangalore.

  • AUTO-INCREMENT Primary key5:26

    Create a persons table with an auto-incrementing primary key and not-null fields (last name, first name, city, age), then insert rows to display identity-generated IDs.

  • first console application5:39
  • first ASP.NET Application4:53

Requirements

  • prior knowledge in c# progamming,ASP. NET 2.0 IS MUST
  • prior knowledge in sql queries,sql server
  • HTML controls and AspDotNet control Basics.
  • students must have undergone a course in c#. net and asp .net

Description

     ADODotNET is a set of classes (a framework) to interact with data sources such as databases and XML files.  ADO is the acronym for ActiveX Data Objects. It allows us to connect to underlying data or databases. It has classes and methods to retrieve and manipulate data.

The following are a few of the dot NET applications that use ADODotNET to connect to a database, execute commands and retrieve data from the database.

  • ASP.NET Web Applications

  • Console Applications

  • Windows Applications.

Various Connection Architectures

There are the following two types of connection architectures:

  1. Connected architecture: the application remains connected with the database throughout the processing.

  2. Disconnected architecture: the application automatically connects/disconnects during the processing. The application uses temporary data on the application side called a DataSet


    Important Classes in ADODotNET

    We can also observe various classes in the preceding diagram. They are:

    1. Connection Class

    2. Command Class

    3. DataReader Class

    4. DataAdaptor Class

    5. DataSet Class

         1. Connection Class

      In ADODotNET, we use these connection classes to connect to the database. These connection classes also manage transactions and connection pooling. To learn more about connection classes, start here: Connection in ADODotNET

         2. Command Class

      The Command class provides methods for storing and executing SQL statements and Stored Procedures. The following are the various commands that are executed by the Command Class.

      • ExecuteReader: Returns data to the client as rows. This would typically be an SQL select statement or a Stored Procedure that contains one or more select statements. This method returns a DataReader object that can be used to fill a DataTable object or used directly for printing reports and so forth.

      • ExecuteNonQuery: Executes a command that changes the data in the database, such as an update, delete, or insert statement, or a Stored Procedure that contains one or more of these statements. This method returns an integer that is the number of rows affected by the query.

      • ExecuteScalar: This method only returns a single value. This kind of query returns a count of rows or a calculated value.

      • ExecuteXMLReader: (SqlClient classes only) Obtains data from an SQL Server 2000 database using an XML stream. Returns an XML Reader object.


           3. DataReader Class

      The DataReader is used to retrieve data. It is used in conjunction with the Command class to execute an SQL Select statement and then access the returned rows. Learn more here: Data Reader in C#.

          4. DataAdapter Class

      The DataAdapter is used to connect DataSets to databases. The DataAdapter is most useful when using data-bound controls in Windows Forms, but it can also be used to provide an easy way to manage the connection between your application and the underlying database tables, views and Stored Procedures. Learn more here: Data Adapter in ADODotNET

          5. DataSet Class

      The DataSet is the heart of ADODotNET . The DataSet is essentially a collection of DataTable objects. In turn each object contains a collection of DataColumn and DataRow objects. The DataSet also contains a Relations collection that can be used to define relations among Data Table Objects.

Who this course is for:

  • students in Btech final Yeras and Post graduate courses
  • profesional at MNCS like cognizaNt,IBM,ETC..
  • who want to develop career in client server technologies