From c18fabdeb70fb9ec94f2cdf06706705c8c2b78db Mon Sep 17 00:00:00 2001 From: Manuel Sugawara Date: Mon, 10 Aug 2015 12:41:53 -0700 Subject: [PATCH] Fixed the IDataCommand adding the ReadAsDataSet that is present in DataCommand but was not present in the interface --- src/mindtouch.dream.test/Data/MockDataCatalog.cs | 4 ++++ src/mindtouch.dream/Data/IDataCommand.cs | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/mindtouch.dream.test/Data/MockDataCatalog.cs b/src/mindtouch.dream.test/Data/MockDataCatalog.cs index b871d68..184185c 100644 --- a/src/mindtouch.dream.test/Data/MockDataCatalog.cs +++ b/src/mindtouch.dream.test/Data/MockDataCatalog.cs @@ -337,6 +337,10 @@ T IDataCommand.ReadAsObject() { throw new NotImplementedException(); } + DataSet IDataCommand.ReadAsDataSet() { + throw new NotImplementedException(); + } + List IDataCommand.ReadAsObjects() { throw new NotImplementedException(); } diff --git a/src/mindtouch.dream/Data/IDataCommand.cs b/src/mindtouch.dream/Data/IDataCommand.cs index f6c3731..711cd2e 100644 --- a/src/mindtouch.dream/Data/IDataCommand.cs +++ b/src/mindtouch.dream/Data/IDataCommand.cs @@ -186,5 +186,11 @@ public interface IDataCommand { /// Object type to create /// List of created objects List ReadAsObjects() where T : new(); + + /// + /// Execute command and read result into a DataSet. + /// + /// Read DataSet object + DataSet ReadAsDataSet(); } } \ No newline at end of file