M
Mark
Hello
Whenever I create a typed dataset using Northiwnd Database
and add "Region" table. I don't know why I am getting "_"
ahead of "Region" when I try to access "Region" table.
The Sample Code is as follows.
The typed Schema
<xs:schema id="dsRegion" ..>
<xs:element name="dsRegion" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Region">
<xs:complexType>
<xs:sequence>
<xs:element name="RegionID" type="xs:int" />
<xs:element name="RegionDescription"
type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="dsRegionPK" msdatarimaryKey="true">
<xs:selector xpath=".//mstns:Region" />
<xs:field xpath="mstns:RegionID" />
</xs:unique>
</xs:element>
</xs:schema>
And the code I used to access is
Dim lmyRegionDataSet As ADO.dsRegion
Dim lmyTable As DataTable
lmyTable = lmyRegionDataSet._Region()
Now why there is "_" ahead of region table?
Why can't i access it like
lmyTable = lmyRegionDataSet.Region()
like other tables
Regards
Mark
Whenever I create a typed dataset using Northiwnd Database
and add "Region" table. I don't know why I am getting "_"
ahead of "Region" when I try to access "Region" table.
The Sample Code is as follows.
The typed Schema
<xs:schema id="dsRegion" ..>
<xs:element name="dsRegion" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Region">
<xs:complexType>
<xs:sequence>
<xs:element name="RegionID" type="xs:int" />
<xs:element name="RegionDescription"
type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="dsRegionPK" msdatarimaryKey="true">
<xs:selector xpath=".//mstns:Region" />
<xs:field xpath="mstns:RegionID" />
</xs:unique>
</xs:element>
</xs:schema>
And the code I used to access is
Dim lmyRegionDataSet As ADO.dsRegion
Dim lmyTable As DataTable
lmyTable = lmyRegionDataSet._Region()
Now why there is "_" ahead of region table?
Why can't i access it like
lmyTable = lmyRegionDataSet.Region()
like other tables
Regards
Mark