ADO.NET DataTable Serialization and Web Services(myviewstate.net)

submitted by kevinbabcockkevinbabcock(345) 2 years, 5 months ago

f you’re working with traditional ADO.NET data types – like the DataTable – in your data access code and wanting to wire up a web service to serve up data, you’ve likely run into some issues. You’re either getting errors due to failed serialization or trying to deal with complex deserialization issues on the other end. A robust solution would be to create entity types to wrap your data into easily digestible (and serializable) objects. You can roll your own or use an Object/Relational Mapper such as Entity Framework or Telerik’s OpenAccess ORM. Another option would be to use a custom converter. But if you’re after a quick solution, you might just consider converting your ADO.NET objects into other CLR objects that the built-in JavaScriptSerializer knows how to convert, and that are easier to work with in the context of web services.

add a comment |category: |Views: 42

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story