C# BlackBerry(tm) Push Service SDK

Database Configuration

Introduction
The low-level APIs (IPapService) does not require the use of any database or repository.

The high-level APIs (IPushService, IPushApplication etc) require the use of a database.

The install database script was generated from a SQL Server 2008 R2 instance however it should work with minimal tweaks on SQL Server 2005, 2008 and 2012.

Connection String
The default data repository expects a connection string of the following form;

<configuration>
  <connectionStrings>
    <add name="ZenPushServiceEntities" connectionString="metadata=res://*/DataAccess.PushDataModel.csdl|res://*/DataAccess.PushDataModel.ssdl|res://*/DataAccess.PushDataModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=ZenPushService;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
</configuration>

The connection string name ZenPushServiceEntities is hardcoded into the data assembly. If the database you create is called something other than ZenPushService then be sure to update the connection string accordingly.

Last edited Jun 20, 2012 at 3:36 PM by dementeddevil, version 4

Comments

No comments yet.