hi guys,

I'm currently working with tablemapping objects in
.NET, when used with a native mysql data adapter  and
native sql server data adapter objects, it correctly
maps the fields in the dataset. However when  used
with OdbcDataAdapter, instead of mapping the fields to
the dataset, it adds the fields.

here's the code ...
=====================================================
private void _PrepareMappings( DataTable tbl,
DbDataAdapter adapter ){
                        DataTableMapping mapping = new DataTableMapping(
tbl.ExtendedProperties[ "map-name"] + "",
tbl.TableName );
                        foreach( DataColumn column in tbl.Columns )
                                mapping.ColumnMappings.Add(
column.ExtendedProperties[ "map-name" ] + "",
column.ColumnName );
                        adapter.TableMappings.Add( mapping );
                }
======================================================

cheers,

Lord Norlan Mumar


                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/XGgtlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Microsofts_C_Sharp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to