![]() The only thing is that dynamics initially o not have any property, so you would have to generate properties and fill the values on the runtime while reading the ADO object. If this is your case, dynamics would work well. It is only one additional step which you would use only for transforming the DataTable to model as an input for serializer. Since you only need JSON string in the end, you do not really care for the model class. The condition is that you need to have a model class to which you want to bind to. Some time ago I wrote the simple class at where you can simply get the POCO object instance from the ADO objects. In this case you can can just simply convert the table to a simple POCO objects. The only requirements for these serializers is that their serialization methods accept objects which properties hod the values instead of DataTables or DataReaders. NET and their performances you can check
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |