Пример #1
0
        public PocoDatabase(DatabaseEngine databaseEngine, string connectionString)
        {
            // Connection Parameters
            this.DatabaseEngine   = databaseEngine;
            this.ConnectionString = connectionString;

            // Helpers
            this.Helpers = new PocoHelpers(this.DatabaseEngine);

            // Construct
            this.Construct();
        }
Пример #2
0
        public PocoDatabase()
        {
            // Connection Parameters
            this.DatabaseEngine   = PocoStatic.DefaultOptions.DatabaseEngine;
            this.ConnectionString = PocoStatic.DefaultOptions.ConnectionString;

            // Helpers
            this.Helpers = new PocoHelpers(this.DatabaseEngine);

            // Construct
            this.Construct();
        }