Exemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public SqLiteDatabase()
        {
            // Sets a default name to the database
            DatabaseName = ConnectionStringBuilder.GetDefaultDbName(dbManager.GetAndIncrNbDefaultDb());

            // Intitialization of the Fluent API
            sqliteFI = new SqLiteDatabaseFApi(this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// All params are optionals
        /// </summary>
        /// <param name="databaseName"></param>
        /// <param name="dataSource"></param>
        /// <param name="password"></param>
        /// <param name="version"></param>
        /// <param name="connectionString"></param>
        public SqLiteDatabase(
            string databaseName     = "",
            string dataSource       = "",
            string password         = "",
            int version             = 3,
            string connectionString = "")
        {
            DatabaseName     = databaseName;
            DataSource       = dataSource;
            Version          = version;
            ConnectionString = "";

            sqliteFI = new SqLiteDatabaseFApi(this);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Default settings from a given provider
 /// </summary>
 /// <param name="dbName"></param>
 public SqLiteDatabase(string dbName)
 {
     SqLiteDbDefault(dbName);
     sqliteFI = new SqLiteDatabaseFApi(this);
 }