Esempio n. 1
0
        public Recordset(object dataSource, RecordsetType recordsetType, IDataConverter dataConverter)
        {
            RecordsetType = recordsetType;
            _wrapper      = BuildSetWrapper(recordsetType, dataSource);
            InternalData  = new InternalData();

            if (dataConverter != null)
            {
                _dataConverter = dataConverter;
            }
        }
Esempio n. 2
0
        private static ISetWrapper BuildSetWrapper(RecordsetType recordsetType, object dataSource = null)
        {
            IFactory <ISetWrapper> factory = new SetWrapperFactory();
            var parameter = dataSource == null ? null : new SetWrapperFactoryProduceParameter()
            {
                DataSource = dataSource
            };

            switch (recordsetType)
            {
            case RecordsetType.DataSet:
                return(factory.Produce <DataSetWrapper>(() => parameter));
            }

            return(null);
        }
		public Recordset _30_OpenRecordset(RecordsetType type, RecordsetOption options)
		{
			return new Recordset(qd._30_OpenRecordset(type, options));
		}
		public Recordset _30_OpenRecordset(RecordsetType type)
		{
			return new Recordset(qd._30_OpenRecordset(type, System.Type.Missing));
		}
		public Recordset _OpenRecordset(RecordsetType type, RecordsetOption options, LockType lockedits)
		{
			return new Recordset(qd._OpenRecordset(type, options, lockedits));
		}
		public Recordset _OpenRecordset(RecordsetType type, RecordsetOption options)
		{
			return new Recordset(qd._OpenRecordset(type, options, System.Type.Missing));
		}
Esempio n. 7
0
 public Recordset(RecordsetType recordsetType)
     : this(recordsetType, null)
 {
 }
Esempio n. 8
0
 public Recordset(RecordsetType recordsetType, IDataConverter dataConverter)
     : this(null, recordsetType, dataConverter)
 {
 }
		public Recordset OpenRecordset(RecordsetType type)
		{
			return new Recordset(rs.OpenRecordset(type, System.Type.Missing));
		}
		public Recordset OpenRecordset(RecordsetType type, RecordsetOption options)
		{
			return new Recordset(rs.OpenRecordset(type, options));
		}
Esempio n. 11
0
		public Recordset _30_OpenRecordset(string source, RecordsetType type, RecordsetOption options)
		{
			return new Recordset(db._30_OpenRecordset(source, type, options));
		}
Esempio n. 12
0
		public Recordset OpenRecordset(string source, RecordsetType type, RecordsetOption options, LockType lockedits)
		{
			return new Recordset(db.OpenRecordset(source, type, options, lockedits));
		}
Esempio n. 13
0
		public Recordset OpenRecordset(string source, RecordsetType type, RecordsetOption options)
		{
			return new Recordset(db.OpenRecordset(source, type, options, Type.Missing));
		}
Esempio n. 14
0
		public Recordset OpenRecordset(string source, RecordsetType type)
		{
			return new Recordset(db.OpenRecordset(source, type, Type.Missing, Type.Missing));
		}
Esempio n. 15
0
		public Recordset OpenRecordset(RecordsetType type)
		{
			return new Recordset(td.OpenRecordset(type, Type.Missing));
		}