Quick Objects Documentation Akal Tech Logo
Using Quick Objects on Compact Framework

Glossary Item Box

Quick Objects Business Logic Framework and Database Access Library are available for Compact Framework 2.0 or later.  Since there is no built in support for configuration files the connection string and database type can not be specified in a config file, rather any of the approaches described below need to be used.

BusinessObjectConfiguration.Instance.ConnectionString = @"Data Source=\My Documents\database.sdf;Persist Security Info=False;";

BusinessObjectConfiguration.Instance.DBType = Akal.QuickObjects.DBLibrary.DatabaseObject.DatabaseTypes.SqlCE3;

Just make sure to specify these lines are executed at least once before you create any business object instance. You can also specify the values for other settings as well. You can load these values from another source of hard code them based on your needs.  Once you specify the values here, those values can still be overridden on each individual instance.

 

Limitation on Compact Framework:

  • No support for TimeZones library or integrated TimeZones translations
  • No support for LoggedInUser object property.

 

Requirements for Compact Framework Support:

  • You must specify "CompactFramework" as a build flag in your Visual Studio Project configuration, for the generated C# code to be compile.
  • You must include a reference to and deploy Infralution.Licensing.CF.dll assemby included with the Quick Objects CF2 libraries. This is in addition to the QuickObjects.DBLibrary.CF20.dll and QuickObjects.ObjectBase.CF20.dll
  • If you are working with VistaDB, then you must add a reference and deploy the VistaDB's data provider for compact framework.