O
OstadAkbari
I have a problem with Database and datasets in ADO.NET
I have 4 client Programs(Application) that each of them
first Fill a Dataset and then work with their's
dataset,each of them can update database using
DataAdapter update Method.
Now i want all programs use updated data in their dataset.
in other word, i want a way that i can update dataset in
application X when database was updated in application Y.
My way for solve this problem is:
Public MyDataset As DataSet
in determined priod of time occurs:
MyDataset = New DataSet("dsSoundPost")
daInBox.FillSchema(MyDataset,
SchemaType.Mapped)
daShahrVand.FillSchema(MyDataset,
SchemaType.Mapped)
daSound.FillSchema(MyDataset,
SchemaType.Mapped)
daInBox.Fill(MyDataset)
daShahrVand.Fill(MyDataset)
daSound.Fill(MyDataset)
If dataset not chande in one priod,in next priod it fills
and works properly,But
If dataset changes in one priod ,in next priod it's
structure will destroyed.
I have 4 client Programs(Application) that each of them
first Fill a Dataset and then work with their's
dataset,each of them can update database using
DataAdapter update Method.
Now i want all programs use updated data in their dataset.
in other word, i want a way that i can update dataset in
application X when database was updated in application Y.
My way for solve this problem is:
Public MyDataset As DataSet
in determined priod of time occurs:
MyDataset = New DataSet("dsSoundPost")
daInBox.FillSchema(MyDataset,
SchemaType.Mapped)
daShahrVand.FillSchema(MyDataset,
SchemaType.Mapped)
daSound.FillSchema(MyDataset,
SchemaType.Mapped)
daInBox.Fill(MyDataset)
daShahrVand.Fill(MyDataset)
daSound.Fill(MyDataset)
If dataset not chande in one priod,in next priod it fills
and works properly,But
If dataset changes in one priod ,in next priod it's
structure will destroyed.