Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
If all you want do to is create a read only DB2 item, then it will actually be quite easy. You will probably have it done before the day is out. You'll still want to copy over the SqlDataSourceItem and modify it, but you can take the methods like UpdateRow(), and CreateInsertCommand(), etc. and just throw a NotSupportedException from within them. Then, all you need to do is modify the CreateSelectCommand() method to match what the AS400 is expecting. As far as I can tell, the only thing that needs to be modified up front is to remove the TOP keyword and make it a LIMIT at the end of the command (you'll see where it is when you look at the code). The other methods that need to be changed are one-liners... like CreateBlankDbCommand()... it just returns a new OleDbCommand object, or whatever provider you're using.
|