The mechanisms have now been enhanced in the following important ways:
- Full class definitions are now available for Views and structured types as well as base tables,
- Deep structure is supported: Pyrrho will define nested classes for subjects in tables or views, and for user-defined types. (All such classes are Versioned too)
- The Versioned base class now includes a readCheck in addition to a row Check.
The readCheck is for checking later whether the query used to obtain the data would get the same results.
Class definitions can be found in the "Role$Class" table.Such a class C can then be used with the database connection with the following methods added to the usual IDbConnection interface:
- C FindOne
() - C[] FindWith
(string where) - C[] FindAll
() - Post(C s)
- Put(C s)
- Delete(C s)
- Check(string check)
- Check(string check,string readCheck)
No comments:
Post a Comment