B
Bryce
Using ASP.NET and C# (Visual Studio 2005). I generated a Typed DataSet.
I run the following code, but don't get any errors, but it doesn't
appear to be updating the database. (I've stepped through the code to
ensure it is hitting the code):
// Begin Code
DirectoryListingTableAdapters.DIRECTORY_LISTINGTableAdapter adapter =
new DirectoryListingTableAdapters.DIRECTORY_LISTINGTableAdapter();
DirectoryListing.DIRECTORY_LISTINGDataTable table = adapter.GetData();
DirectoryListing.DIRECTORY_LISTINGRow dataRow =
table.NewDIRECTORY_LISTINGRow();
dataRow.SomeNumber = 345;
table.AddDIRECTORY_LISTINGRow(dataRow);
table.AcceptChanges();
adapter.Update(table);
// End code
Anything obvious what I'm doing wrong?
Thanks
I run the following code, but don't get any errors, but it doesn't
appear to be updating the database. (I've stepped through the code to
ensure it is hitting the code):
// Begin Code
DirectoryListingTableAdapters.DIRECTORY_LISTINGTableAdapter adapter =
new DirectoryListingTableAdapters.DIRECTORY_LISTINGTableAdapter();
DirectoryListing.DIRECTORY_LISTINGDataTable table = adapter.GetData();
DirectoryListing.DIRECTORY_LISTINGRow dataRow =
table.NewDIRECTORY_LISTINGRow();
dataRow.SomeNumber = 345;
table.AddDIRECTORY_LISTINGRow(dataRow);
table.AcceptChanges();
adapter.Update(table);
// End code
Anything obvious what I'm doing wrong?
Thanks