コード例 #1
0
        async public Task <IDataset2> EmptyCopy()
        {
            SQLiteFDBDataset dataset = new SQLiteFDBDataset();
            await dataset.SetConnectionString(ConnectionString);

            await dataset.Open();

            return(dataset);
        }
コード例 #2
0
        public IDataset2 EmptyCopy()
        {
            SQLiteFDBDataset dataset = new SQLiteFDBDataset();

            dataset.ConnectionString = ConnectionString;
            dataset.Open();

            return(dataset);
        }
コード例 #3
0
        async static internal Task <SQLiteFDBDataset> Create(SQLiteFDB fdb, string dsname)
        {
            var ds = new SQLiteFDBDataset();

            ds._dsname = dsname;
            string connStr = fdb.DatabaseConnectionString;

            if (!connStr.Contains(";dsname=" + dsname))
            {
                connStr += ";dsname=" + dsname;
            }

            await ds.SetConnectionString(connStr);

            await ds.Open();

            return(ds);
        }