sqlhelp Posted August 11, 2015 Report Posted August 11, 2015 V b lo ila undi Const sql As String = "Select * from google" Dim table As DataTable Dim newRow As DataRow table = Me.D ataAction.GetDataTable(sql) C # lo DataAction ki equivalent enti ? nenu ee paina code ni C # lo rayali please help.
stockdazzler Posted August 11, 2015 Report Posted August 11, 2015 user any vb to c# converters bro const string sql = "Select * from google"; DataTable table = default(DataTable); DataRow newRow = default(DataRow); table = this.DataAction.GetDataTable(sql);
sqlhelp Posted August 11, 2015 Author Report Posted August 11, 2015 user any vb to c# converters bro const string sql = "Select * from google"; DataTable table = default(DataTable); DataRow newRow = default(DataRow); table = this.DataAction.GetDataTable(sql); I did bro error vashtundi for Da taAction '' does not contain a definition for 'DataAction' and no extension method
stockdazzler Posted August 11, 2015 Report Posted August 11, 2015 I did bro error vashtundi for Da taAction '' does not contain a definition for 'DataAction' and no extension method c# lo a method ledu anukunta . Create new datatable and use datadpater to fill it
puli_keka Posted August 11, 2015 Report Posted August 11, 2015 I did bro error vashtundi for Da taAction '' does not contain a definition for 'DataAction' and no extension method c# lo a method ledu anukunta . Create new datatable and use datadpater to fill it yes..method undadhu.. use data adapter and use Fill method. this example suits your reqmt http://stackoverflow.com/questions/6073382/read-sql-table-into-c-sharp-datatable once you get datatable.. do foreach DataRow and read columns
Raja123 Posted August 11, 2015 Report Posted August 11, 2015 yes..method undadhu.. use data adapter and use Fill method. this example suits your reqmt http://stackoverflow.com/questions/6073382/read-sql-table-into-c-sharp-datatable once you get datatable.. do foreach DataRow and read columns
Recommended Posts