Skip to content

A Newtonsoft Json converter to the .NET System.Data.DataTable

Notifications You must be signed in to change notification settings

codenaked/DataTableConverter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

DataTableConverter

A Newtonsoft Json converter to the .NET System.Data.DataTable

Usage

Include the convert into your project.

Then when serializing/deserializing an object include the converter

string json = JsonConvert.SerializeObject(table, new Serialization.DataTableConverter());
DataTable table = JsonConvert.DeserializeObject<DataTable>(json, new Serialization.DataTableConverter());

Or you can edit the global configuration for the JSON .NET serializer so that the converter will be picked up everywhere:

GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.Converters.Add(new Serialization.DataTableConverter());

About

A Newtonsoft Json converter to the .NET System.Data.DataTable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 52.7%
  • Visual Basic .NET 47.3%