|
|||||
|
|||||
|
.NET wrappers for data objects Note: This page is an early note about what has now become DbWrappers, a free C# data object code generator. Source code is available. Check that out; it's much more up-to-date than the info here. It works, too ;) I've been coding in C# for a month or so now, and I think I finally understand how System.Data works. The idea of a DataSet sounds cool, but they don't seem to work very well for me in practise. The real advantage of C# for me is how well IntelliSense works with it (compared to C++, where the IDE often freezes for 10 seconds while it hunts down the object definition, or Python, which I edit in a text editor), but this only works if the data I'm after is a property, not a member of a hash-like object. Justin Rudd is working on a simple way to create DataSets from XML. This looks like a good idea. I'm subscribed to his RSS feed; I hope this works well for him. Personally I want something along the lines of JDO; specifically some way to generate useful C# code from a databae schema. For each table (let's call our hypothetical table 'tblExample'), I want the following interface / objects:
Is there already something around that does this? If not, I'll write it myself because it will make my life much much easier when coding for .NET. If done cleverly, it might also be usable in other languages - it would be cool to have a cross-language data access code generator. I wouldn't mind something like this for C++ or Python (although you could probably do it all at runtime in Python ;-) I'll consider implementation in another story; this one's getting a bit long. |