Пример #1
0
 /// <summary>
 /// 新增条件项
 /// </summary>
 public void Add(PDMDbProperty property, SelectBuilder subSelect, LocateType operatorType, string nickName = null)
 {
     Wheres.Add(new ComponentValueOfWhere(property, subSelect, operatorType, nickName));
 }
Пример #2
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract DateTime?SelectAsDateTime <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #3
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract DbDataReader SelectAsDataReader <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #4
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract string SelectAsString <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #5
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract List <string> SelectAsStrings <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #6
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract long?SelectAsLong <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #7
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract Guid?SelectAsGuid <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #8
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract short?SelectAsShort <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #9
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract int?SelectAsInt <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #10
0
 /// <summary>
 /// 未查询到数据时返回 New List()
 /// 单个SelectBuilder查询一组数据
 /// </summary>
 public abstract List <T> SelectAll <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #11
0
 ///// <summary>
 ///// 未查询到数据时返回 New List()
 ///// </summary>
 //public abstract List<T> SelectAll<T>(DbQueryBuilder queryBuilder) where T : IPDMTBase, new();
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract bool?SelectAsBool <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #12
0
 /// <summary>
 /// 未查询到数据时返回 null
 /// </summary>
 public abstract T Select <T>(SelectBuilder selectBuilder) where T : VLModel_DB, new();
Пример #13
0
        /// <summary>
        /// 失败返回 new List<T>()
        /// </summary>
        public override List <T> SelectAll <T>(DbQueryBuilder queryBuilder)
        {
            SelectBuilder selectBuilder = queryBuilder.SelectBuilders.First();

            return(SelectAll <T>(selectBuilder));
        }
Пример #14
0
        /// <summary>
        /// 失败返回null
        /// </summary>
        public override T Select <T>(DbQueryBuilder queryBuilder)
        {
            SelectBuilder selectBuilder = queryBuilder.SelectBuilders.FirstOrDefault();

            return(Select <T>(selectBuilder));
        }
Пример #15
0
 public override DbDataReader SelectAsDataReader <T>(SelectBuilder selectBuilder)
 {
     throw new NotImplementedException();
 }
Пример #16
0
 public override List <string> SelectAsStrings <T>(SelectBuilder selectBuilder)
 {
     throw new NotImplementedException();
 }