using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;



namespace RMtrix
{
    class dBFunctions
    // adapted from C# & SQLite 1007000 By kribo | 3 May 2011, http://www.codeproject.com/Articles/190223/C-SQLite-1007000
    {
        public static string ConnectionStringSQLite
        {
            get
            {
                string database = "C:\\MyDocs\\FamilyTree\\RM5\\RM5 PLAY.rmgc";
                    //AppDomain.CurrentDomain.BaseDirectory + "..\\..\\Database\\Contact.s3db";
                    //AppDomain.CurrentDomain.BaseDirectory + "\\Database\\Contact.s3db";
                string connectionString =
                    @"Data Source=" + Path.GetFullPath(database);
                return connectionString;
            }
        }

        internal static string ConnectionStringSQLite2(string filename)
        {
                string connectionString =
                    @"Data Source=" + Path.GetFullPath(filename);
                return connectionString;
        }

    }
}
