Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #143 from manuel-sugawara/fix-idatacommand
Browse files Browse the repository at this point in the history
DR-145 Add the ReadAsDataSet method to the IDataCommand interface
  • Loading branch information
bjorg committed Aug 10, 2015
2 parents 7f74845 + 80cea2f commit 641ff07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mindtouch.dream.test/Data/MockDataCatalog.cs
Expand Up @@ -337,6 +337,10 @@ public class MockDataCommand : IDataCommand {
throw new NotImplementedException();
}

DataSet IDataCommand.ReadAsDataSet() {
throw new NotImplementedException();
}

List<T> IDataCommand.ReadAsObjects<T>() {
throw new NotImplementedException();
}
Expand Down
6 changes: 6 additions & 0 deletions src/mindtouch.dream/Data/IDataCommand.cs
Expand Up @@ -186,5 +186,11 @@ public interface IDataCommand {
/// <typeparam name="T">Object type to create</typeparam>
/// <returns>List of created objects</returns>
List<T> ReadAsObjects<T>() where T : new();

/// <summary>
/// Execute command and read result into a DataSet.
/// </summary>
/// <returns>Read DataSet object</returns>
DataSet ReadAsDataSet();
}
}

0 comments on commit 641ff07

Please sign in to comment.