|
//
// This source code is licensed for commercial and non-commercial use under the
// Code Project Open License (CPOL) 1.02 http://www.codeproject.com/info/cpol10.aspx
// Developer: Joerg Lang (lang.joerg@gmail.com)
//
using System.Configuration;
using System.Data.OleDb;
using DbDzComposer;
namespace DeepZoomSilverlightWeb
{
public static class Helper
{
/// <summary>
/// Returns DeepZoom Database data access object for the Access database.
/// </summary>
/// <returns></returns>
public static DzDbAccess GetAccessDb()
{
// Read connection string from the property settings and open the database
string connectionString = ConfigurationManager.AppSettings["ConnectionString"];
var cn = new OleDbConnection(connectionString);
cn.Open();
// Create the MS Access database object and pass it the connection object.
var accessPersistence = new DzDbAccess();
accessPersistence.DbConnection = cn;
return accessPersistence;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have my own software company called Evelix (www.evelix.ch). The company is located in Liestal, Switzerland. I develop software for the web and the desktop. Every now and then I give computer classes in a learning institution.
I was born in 1966, am married and have one kid. Hobbies are Fasnacht (www.bmg.bs), skiing and of course computers.
Actually I studied mechanical engineering and have a bachelors degree in it, but computers interested me since I had a Commodore C128. In the meantime my mobile has a thousand times more memory than my computers back then. First I started programming in Basic. After that I did use Pascal for a while, but the real (commercial) programming started with VB3. Now I do programming in C# and sometimes still in VB6 when I have to support an older application.
Currently I'm working towards my Microsoft Certified Trainer status.