Simple ADO.NEt question

  • Thread starter Thread starter Arsalan
  • Start date Start date
A

Arsalan

What is the equivalent of

DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment]

in ADO.NET?
 
It's hard to exactly answer your question since we no longer use Data
Environments or Recordsets. We now store data in a disconnected mode inside
of an entity called a DataTable. DataTables can be used as individual units
or placed inside of a larger entity called a DataSet (where other DataTables
can be stored inside of a Tables collection).

Either way, you access a field of a DataTable via it's "Item" property:

DataTable.Item("FIELD")
 
Thanks.

So what step do i need to follow,
first i've to make dataset, and fill it , then link datatable to dataset ?
am I right?

Scott M. said:
It's hard to exactly answer your question since we no longer use Data
Environments or Recordsets. We now store data in a disconnected mode
inside of an entity called a DataTable. DataTables can be used as
individual units or placed inside of a larger entity called a DataSet
(where other DataTables can be stored inside of a Tables collection).

Either way, you access a field of a DataTable via it's "Item" property:

DataTable.Item("FIELD")


Arsalan said:
What is the equivalent of

DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment]

in ADO.NET?
 
The act of filling a DataSet will cause a DataTable to be created (if none
exist already).

Or, you could manually populate a DataTable and then add it to a DataSet.


Arsalan said:
Thanks.

So what step do i need to follow,
first i've to make dataset, and fill it , then link datatable to dataset ?
am I right?

Scott M. said:
It's hard to exactly answer your question since we no longer use Data
Environments or Recordsets. We now store data in a disconnected mode
inside of an entity called a DataTable. DataTables can be used as
individual units or placed inside of a larger entity called a DataSet
(where other DataTables can be stored inside of a Tables collection).

Either way, you access a field of a DataTable via it's "Item" property:

DataTable.Item("FIELD")


Arsalan said:
What is the equivalent of

DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment]

in ADO.NET?
 
Thanks a lot
Scott M. said:
The act of filling a DataSet will cause a DataTable to be created (if none
exist already).

Or, you could manually populate a DataTable and then add it to a DataSet.


Arsalan said:
Thanks.

So what step do i need to follow,
first i've to make dataset, and fill it , then link datatable to dataset
? am I right?

Scott M. said:
It's hard to exactly answer your question since we no longer use Data
Environments or Recordsets. We now store data in a disconnected mode
inside of an entity called a DataTable. DataTables can be used as
individual units or placed inside of a larger entity called a DataSet
(where other DataTables can be stored inside of a Tables collection).

Either way, you access a field of a DataTable via it's "Item" property:

DataTable.Item("FIELD")


What is the equivalent of

DataEnvironment1.rsCommand1("FIELD") [VB Dataenvironment]

in ADO.NET?
 
Back
Top