StrataFrame Forum

Best practice example on BO inheritance

http://forum.strataframe.net/Topic17831.aspx

By Ross L. Rooker, Sr. - 7/14/2008

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.

By StrataFrame Team - 7/14/2008

We will be releasing a new sample called StrataFlix which will show how to do this very thing.  We are giving it to our class attendees, but it is not quite finished.  We will still release it prior to finishing the entire application, but it will still be a week or so before we release this sample.
By Ross L. Rooker, Sr. - 7/21/2008

Do you have an ETA on StrataFlix sample?
By Trent L. Taylor - 7/21/2008

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.
By Ross L. Rooker, Sr. - 7/24/2008

I hope just a week. So that the non-class members can also participate in this. Although we did not attend the class, when have something great to controntribute I do feel that an earlier sample will yield a better sample. Also we are in a situation that is urgent to make an internal decision using Stratafame over the long term. We want to be brought into to developement team as close as possable to help work with Microfour closely create the best framework for .net.