示例#1
0
        async public Task <IDataset2> EmptyCopy()
        {
            pgDataset dataset = new pgDataset();
            await dataset.SetConnectionString(ConnectionString);

            await dataset.Open();

            return(dataset);
        }
示例#2
0
        public IDataset2 EmptyCopy()
        {
            pgDataset dataset = new pgDataset();

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

            return(dataset);
        }
示例#3
0
        async static internal Task <pgDataset> Create(pgFDB fdb, string dsname)
        {
            var ds = new pgDataset();

            await ds.SetConnectionString(fdb.DatabaseConnectionString + ";dsname=" + dsname);

            await ds.Open();

            return(ds);
        }