m z

m z

  • NA
  • 1
  • 2.8k

Newbie question

Jan 16 2011 9:02 AM
Hi all,

I've been reading "Apress - Introducing Visual CSharp 2010" the last 2 weeks and wanted to write my first app which include a connection to an access DB.
i found an article explain how to do so and in this article i found something that i dont underst in the example that was given :
  1. using System.Data.Odbc
  2. OdbcConnection DbConnection = new OdbcConnection("DSN=SAMPLE_ISAM")
  3. DbConnection.Open() // so far so good
  4. OdbcCommand DbCommand = DbConnection.CreateCommand();
in line 4 -> ( OdbcCommand DbCommand) i dont understand the syntax is it a c'tor? a variable of OdbcCommand class ?

please  thanks

Answers (3)