I have a strongly typed dataSet that calls some stored procedures.In one case I add some data in the database using the strongly typed data set.The data gets added to the database but for some reason the new data is not being displayed.
This leads me to believe that I have to somehow refresh the strongly typed dataset after I add a new item.I am not sure what code I should post here but I will post the code that adds the elements to the database:
var addBookAdapter = new QueriesTableAdapter();
addBookAdapter.AddBook(book.Name,book.Author,book.Description,book.PublicationDate,book.CategoryId);
This is the stored procedure that does this:
CREATE PROCEDURE [dbo].[AddBook]
@Name nvarchar(MAX),
@Author nvarchar(MAX),
@Description nvarchar(MAX),
@Date date ,
@CategoryId int
AS
INSERT INTO Books (Name , Author , Description , PublicationDate , CategoryId)
VALUES (@Name , @Author , @Description , @Date , @CategoryId)
As I already mentioned this works.The new item gets added to the db but they are not displayed