This website is intended as archive for old content and forums.
Please visit http://opf3.codeplex.com for the project's new website.

General Discussion

FORUM TOPIC

What is Opf3? Why is Opf3? How is Opf3? All these burning questions and issues discussed here.

RSS
John Padilla
Posted on the 02/05/07 6:52 PM
ObjectContectCollector Engine Free!
Reply Quote
 FYI

I have written a little engine that you can include in your projects that does the following:

1. Reads a config file for one or more object contexts that a module or application needs.
2. Uses this information to load ANY storage into an object context
3. Stores the object context's in a dictionary collection.

Each context is stored by name and can be retrieved by a single call to the dictionary.

I have written one storage wrapper assembly for MSSQL200x. If there is enough interest, I will write some for the other storages.

Also in the config file, each context section can be application or module specific so you can use a single config file for all of your applications or just one.

Benefits include:
1. Changing storage for the project is a snap and does not require recompile of any code
2. Flexible will grow into the future as new storages are created for OPF3 it will still accept them with no recompile.
3. Works great where an organization centralizes their assemblies on a network location for one or more projects. You can now put the wrapper stroage assemblies and reference them in the config file to look for them at the speficied network folder
4. Supports loading assemblies from either the current directory or from a path.
5. If using multiple modules say DAL or BAL that are reused across multiple apps, you can use a different config file for each or the same one for all.

If interested, reply here and I will email you the source for the engine and and the source MSSQL2005x Context wrapper. Use the example context wrapper to very easially build these for other storages!

P.S. go to the announcements forum i posted an announcement on an ASP.Net demo that also uses this engine.

Regards!

Manuel Vega
Posted on the 03/11/07 8:25 PM
RE: ObjectContectCollector Engine Free!
Reply Quote
 Estoy interesado en tu código

Saludos

John Padilla
Posted on the 03/12/07 2:26 AM
RE: ObjectContectCollector Engine Free!
Reply Quote
 Christian will be uploading the ObjectContextCollector Project and the source code very very soon to the OPF3 web site as a contributor download. I asked him last week and he said he was planing to have it up in a few days! Ninja

If he does not get this up to OPF3 web site soon, I will put a download and anounce it.

Christian Liensberger [Moderator]
Posted on the 03/12/07 9:52 AM
RE: ObjectContectCollector Engine Free!
Reply Quote
 Hi John,

could you send him the sample. I have currently so much to do for university, that I'm not able to do everything.

Thanks
Christian

John Padilla
Posted on the 03/16/07 6:37 AM
RE: ObjectContectCollector Engine Free!
Reply Quote
 ObjectContextCollector V2 is available on my web site under Downloads.

please go to www.johnpadillaweb.com and click Downloads in the main menu. Enjoy!

I will also be uploading the updated Asp.Net Demo app with latest changes and bug fixes.

Cheers! Ninja



Christian Liensberger [Moderator]
Posted on the 03/16/07 10:17 AM
RE: ObjectContectCollector Engine Free!
Reply Quote
 This is great news John. Thank you for all the effort.

Christian

All times are in GMT.