コード例 #1
0
 public override object LoadData(DataContext context, IDataReader dataReader, object state)
 {
     // var queryState = state as QueryState;
     // object value = null;
     // if (queryState == null) {
     //     value = dataDefine.LoadData(context, dataReader, Name, state);
     // } else if (queryState.CheckSelectField(Name)) {
     //     value = dataDefine.LoadData(context, dataReader, Name, state);
     // }
     // return value;
     return(dataDefine.LoadData(context, dataReader, state));
 }
コード例 #2
0
        public override object LoadData(DataContext context, IDataReader datareader, object state)
        {
            QueryState queryState = state as QueryState;
            object     value      = null;

            if (queryState == null)
            {
                value = dataDefine.LoadData(context, datareader, name, state);
            }
            else if (queryState.CheckSelectField(name))
            {
                value = dataDefine.LoadData(context, datareader, name, state);
            }
            return(value);
        }