StrataFrame Forum

Using the framework without a database

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

By Keith Chisarik - 12/14/2006

I have a need to "slam in" a quick application to fill a customers need. They need it in just a few days. I want to use SF in a "stand alone" mode, that is no need for a data connection as I will be hard coding a lot to get it done in short order, then replacing with a SQL back end as time permits.



What do I need to do to "turn off" the frameworks need for a data source?



I tried commenting out some stuff from Appmain that I thought would do the trick, but it blew up with regularity.



Thanks,



Keith
By Trent L. Taylor - 12/14/2006

What do I need to do to "turn off" the frameworks need for a data source?

Really all you have to do is comment out the SetConnections() method in the AppMain.vb file.  If you are going to have BOs this becomes more tricky.  You can create a "dummy" connection, but any Save() or Undo() calls will fail since it will try to use the connection.

By Larry Caylor - 12/16/2006

The Save methods are overridable so you could handle those in your code. For the Undos you could mark them overridable in the source, re-compile and handle them any way you like.  I’m already doing that with the Add method.

By Trent L. Taylor - 12/16/2006

You don't need to change the source code to override.  You can just Shadow the Undo method and achieve the same results.  This will prevent your source code from going down a different path than ours on the future updates.

Larry, I will add the override ability to the Undo so you don't have to change the source in the future.