Re: Strongly typed dataset and remoting

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Either way will work.

You can serialize strongly typed datasets via remoting as long as both the
client and the server have the type information available. You can put your
typed dataset into a shared assembly (dll) that you copy to both the server
and the client.

You can also send un-typed datasets to the server from a typed dataset on
the client.

Dim ds as New DataSet(MyTypedDataSet.DatasetName)
ds.EnforceConstraints = MyTypedDataSet.EnforceConstraints
ds.Merge(MyTypedDataset.GetChanges(), False)
'-- ds is an untyped dataset containing the changes (diffgram)

HTH,
-B

"Sakke" <sakke@xxxxxxxxxxxxxxxx> wrote in message
news:unv%23hXghFHA.3912@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I have problem with strongly typed dataset and remoting.
>
> I have strongly typed dataset in client and I want sent it to server via
> remoting. How I can do that? I need data and diffgram statuses in server
> (inserted, modified)
>
> If is not possible, can I some how convert strongly typed dataset to plain
> dataset and still have diffgram statuses?
>
> Thanks for advices
>
>
>


.



Relevant Pages

  • Serialized Typed DataSet Versioning
    ... I'm working on a smart client application for my company. ... When the application starts in online ... changes to the server and gets a new dataset. ... If there are schema changes made to the typed dataset in, say, version ...
    (microsoft.public.dotnet.framework.adonet)
  • empty DataTable fields throw exception
    ... I've loaded my typed dataset from SQL ... In the SQL Server table, the Agency field has a value, ... CaseType field throws a runtime exception. ...
    (microsoft.public.dotnet.framework.adonet)
  • Typed Dataset
    ... I'm trying to generate a typed dataset and it failed. ... I'm dragging the table from the server explore into the new xsd file. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Strongly typed dataset and remoting
    ... > client and the server have the type information available. ... > your typed dataset into a shared assembly that you copy to both the ... >> I have problem with strongly typed dataset and remoting. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Deserialization issue sending an strong typed DataSet
    ... \par Frank ... \par> service which transfer a typed DataSet from client to server, ... \par> a separate class library referenced by both client and service project. ... \par> to your typeddataset or WCF configuration that cause this. ...
    (microsoft.public.dotnet.framework.webservices)