ReleaseD Version 0.2 AT 2003.12.20
After nearly four days of fighting, I finally made the following improvements in accordance with a few enthusiastic friends: 1. Add a minDSware.core.db.dbContext class for storing the database definition.
2. Follow the AbstractFactory virtual class mode to add a MINDSWARE.CORE.DB.DBFACTORY class, and users use the reflectable mode in accordance with different provodertypes, and initialize the instance of the various underlying data classes in Runtime, not in the Design Time, such as ORACLE. ASSEMBLY, like DataAccess. Using the IDBFActory interface, modify the use of more standard AbstractFactory modes when the support for more provider (eg, ODBC, etc.) is later.
Now, you don't need to quote Oracle.DataAccess, you can compile and run. If you want to use OracleDataProvider, you only need to set the connection definition of the Oracle database as you can set it as a web.config in the sample project, give the Oracle.DataAccess.dll file specific The path can be.
3. Modify all objects of the O-R mapping layer to adapt to this change, and the light spends me for more than ten hours to modify and test.
4. Version 0.1, after modifying the default dbcontext behind the global class, you must restart the entire IIS to reflect changes, now it is not available. After modifying the default connection over the global.application_start event processing method, re-compiling. If you do not explicitly set which DBCONTEXT, you will use DBCONTEXT named Default, which is why at least one
5. Not only can it be one-time convenient to set global default DBCONTEXT inside the Global class, but also set the dbcontext used by the subclass separately for each DBObject subclass, that is, it is easy to in the same project. Different DBObject subclasses use different data connections, as long as these data connection database definitions are set in the web.config file. For this use, please refer to the constructor of the MINDSWaretest.DataObjects.items2 class inside the MINDSWaretest sample.
6. Modify the format of the database definition (
7. The database login password is no longer displayed in a clear text, and the DES encryption algorithm is changed to store inside the configuration file.
8. Bug fix: for ORACLEDATAPROVIDER, WHEN TY TO INSERT OR UPDATE A BLOB Column with a Null Uploaded File, A OCI LOB Exception Occurred.
9. Bug fix: in Query DataSheet
Thank Smth DotNet Edition of Nineteen Moderator and My Older Kangdh :)
To download all source code and examples here: http://www.cnb4c.com/mindsware_dynamicdataObjects_v0.2.rar
Forum Address: http://www.mindsware.com/bbs/list.asp? BoardId = 6