Best practice example on BO inheritance


Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
This is the result of a prior thread but this question was never answered.

Do you have a small sample of a BaseBoSql that would be used as the base business object. Then as you indicated a "useOracleFlag" that would indicate in this BaseBOSql that would tell the BaseBoSql that it needs to use Oracle (BaseBoOracle) and that the BaseBoSql would be instructed to have it's code where it varies to be overridden by the BaseBoOracle business object? Just taking a small sample of a SQL Database "MyDatabase" with a "tbl_Customer" table with 2 columns "customer_Id" and "customer_Name". The Oracle database would be named exactly the same as the SQL Database, sample table and column names and the same case (upper/lower). If you could show a sample code of how to accomplish this, I am sure it would be helpful to others.

I could also heavily modify the mapped bo to use the "useOracleFlag" to include "IF" sections for the generated SQL specific commands or the Oracle commands. Unfortunately, regardless of which approach is taked, it appears that once this is done, you could never regenerate the BO from the database again.

Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
It will not be made public available for several weeks.  Class attendees were the first to get it and are helping in the beta process.  The sample is also not complete as of yet.  So to reduce in the number of questions, we will not release it until we have it further along, which as I mentioned above, will be several weeks before it is in a state (not entirely complete) that we feel comfortable releasing it to the general community at large.  This is the reason the class was able to get the sample as there was a vast amount of additional instruction given.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search