This website is intended as archive for old content and forums. Please visit http://opf3.codeplex.com for the project's new website. |
| |
| | Guidelines This page shows you some of the common design patterns and guidelines you should follow when working with the Opf3 Framework. The patterns are only suggestions and don't need to be implemented. But they make work with the framework much easier and your application more flexible. Code Snippets  | ObjectContextFactory This design pattern shows how to implement the factory pattern for the ObjectContext and storage creation process in your application. |  | Inherit from ObjectSearcher This guideline shows how to understand for which storage a custom query (SqlQuery) is created. Custom queries should be created in an instance of a class that inherits from the ObjectSearcher. This sample shows also how to create your own class that inherits from ObjectSearcher. |  | WebServices, .NET Remoting and other... This guideline shows how to use the Opf3 Framework with web services, .NET Remoting and other methods that need serialization. When using those a few guidelines need to be followed to leverage all benefits of the Opf3 Framework. |  | Multiple ObjectContext instances This guideline shows how to use multiple ObjectContext instances in your application. The example demonstrates how to copy persistent objects from one database to another. They are read from the first database using an ObjectReader (client side database cursor) and stored to the second database. |  | Opf3 in an ASP.NET application This guideline shows how to use the Opf3 Framework in an ASP.NET application. It demonstrates what is important when storing persistent objects to the ASP.NET ViewState and what you should consider when creating instances of the ObjectContext. | | |