Howdy,1. Can StrataFrame automatically check for duplicate record if a user trying to add new record into a table? Do I need to add my own sql to check it?
No, StrataFrame will not automatically check for a duplicate record within SQL Server when a new record is created. You can easily create a method that retrieves the count of the records from the server that conflict with the current record and test the count within the CheckRulesOnCurrentRow event handler.
2. Can StrataFrame autimatically check whether the record is referenced in child table before update/delete? Do I need to add my own sql to check it?
StrataFrame will check the child table to a degree: when a child business object saves and it's parent business object is dirty, the child will force the parent to save first. Business objects will not, however, cascade DELETEs or UPDATEs and it is recommended to do that through the Foreign Key on SQL Server.
3. How can I retrieve the foreign key description from another table? Does StrataFrame provide any special function to do that?
StrataFrame does not detect the foreign keys within SQL Server and create the relationships between the business objects. The relationship must be manually created through the component designer for the business object. There is a type editor that handles the relationship definition which reduces the time needed to define it to less than 30 seconds. Once the relationship has been defined on the business object, however, you can easliy retrive the description for it at runtime and/or through code.