This project ensures publishing dataset and datatable typed objects over wcf with custom types.

Example usage:

namespace WcfDataSet
{
    using WcfDataSet.OMR;

    public class DataSetService : IDataSetService
    {
        const string DUMMY_CONNECTION_STRING = "Server=.;Database=DB1;Trusted_Connection=True;";
        const string DUMMY_SQL_QUERY_1 = "SELECT TOP 1 * FROM INFORMATION_SCHEMA.TABLES";

        public CustomDataSet GetData()
        {
            var dbHelper = new DummyDbHelper(DUMMY_CONNECTION_STRING);
            var dataSet = dbHelper.FillDataSet(DUMMY_SQL_QUERY_1);

            return dataSet.GenerateCustom();
        }

    }
}


Using with wcftestclient:
Untitled-300x293.png

Last edited Aug 6, 2012 at 6:04 PM by omerfarukz, version 4