示例#1
0
        internal EngineBase(Type recordType, Encoding encoding)
        {
            if (recordType == null)
                throw new BadUsageException("The record type can't be null");
            if (recordType.IsValueType)
                throw new BadUsageException("The record type must be a class not a struct.");

            mRecordType = recordType;
            mRecordInfo = new RecordInfo(recordType);
            mEncoding = encoding;
        }
 internal FixedRecordOptions(RecordInfo info)
     : base(info)
 {
 }
示例#3
0
 /// <summary>Creates an instance of this class.</summary>
 protected DataStorage(Type recordClass)
 {
     mRecordType = recordClass;
     mRecordInfo = new RecordInfo(recordClass);
 }
示例#4
0
 /// <summary>Must Return the records from the DataSource (DB, Excel, etc)</summary>
 /// <returns>The extracted records.</returns>
 public DataTable ExtractRecordsAsDT()
 {
     var ri = new RecordInfo(RecordType);
     return ri.RecordsToDataTable(ExtractRecords());
 }
示例#5
0
 internal EngineBase(RecordInfo ri)
 {
     mRecordType = ri.mRecordType;
     mRecordInfo = ri;
 }
 internal RecordConditionInfo(RecordInfo ri)
 {
     mRecordInfo = ri;
 }
 internal RecordOptions(RecordInfo info)
 {
     mRecordInfo = info;
     mRecordConditionInfo = new RecordConditionInfo(info);
     mIgnoreCommentInfo = new IgnoreCommentInfo(info);
 }
 internal IgnoreCommentInfo(RecordInfo ri)
 {
     mRecordInfo = ri;
 }
 internal DelimitedRecordOptions(RecordInfo info)
     : base(info)
 {
 }