/// <include file='MasterDetailEngine.docs.xml' path='doc/MasterDetailEngineCtr2/*'/>
        public MasterDetailEngine(CommonSelector action, string selector)
            : base(typeof(D))
        {
            mMasterType = typeof(M);
            mMasterInfo = new RecordInfo(mMasterType);

            MasterDetailEngine.CommonSelectorInternal sel = new MasterDetailEngine.CommonSelectorInternal(action, selector, mMasterInfo.mIgnoreEmptyLines || mRecordInfo.mIgnoreEmptyLines);
            mRecordSelector = new MasterDetailSelector(sel.CommonSelectorMethod);
        }
        /// <include file='MasterDetailEngine.docs.xml' path='doc/MasterDetailEngineCtr2/*'/>
        public MasterDetailEngine(Type masterType, Type detailType, CommonSelector action, string selector)
            : base(detailType)
        {
            mMasterInfo = new RecordInfo(masterType);

            CommonSelectorInternal sel = new CommonSelectorInternal(action, selector, mMasterInfo.mIgnoreEmptyLines || mRecordInfo.mIgnoreEmptyLines);

            mRecordSelector = new MasterDetailSelector(sel.CommonSelectorMethod);
        }
        /// <include file='MasterDetailEngine.docs.xml' path='doc/MasterDetailEngineCtr2/*'/>
        public MasterDetailEngine(Type masterType, Type detailType, CommonActions action, string selector)
            : base(detailType)
        {
            mMasterInfo = new RecordInfo(masterType);

            CommonSelector sel = new CommonSelector(action, selector);

            mRecordSelector = new MasterDetailSelector(sel.CommonSelectorMethod);
        }
 internal CommonSelectorInternal(CommonSelector action, string selector, bool ignoreEmpty)
 {
     mAction      = action;
     mSelector    = selector;
     mIgnoreEmpty = ignoreEmpty;
 }
Esempio n. 5
0
 /// <include file='MasterDetailEngine.docs.xml' path='doc/MasterDetailEngineCtr/*'/>
 /// <param name="masterType">The master record class.</param>
 /// <param name="detailType">The detail record class.</param>
 /// <param name="action">The <see cref="CommonSelector" /> used by the engine (only for read operations)</param>
 /// <param name="selector">The string passed as the selector.</param>
 public MasterDetailEngine(Type masterType, Type detailType, CommonSelector action, string selector)
     : base(masterType, detailType, action, selector)
 {
 }