/// <summary> /// 读取可空8字节无符号整型值 /// </summary> /// <param name="row">数据行</param> /// <param name="columns">列集合</param> /// <param name="columnName">列名称</param> /// <returns>8字节无符号整型结果</returns> protected UInt64?LoadNullableUInt64(DataRow row, DataColumnCollection columns, String columnName) { if (columns.Contains(columnName) && !Convert.IsDBNull(row[columnName])) { return(DbConvert.ToUInt64(row[columnName])); } else { return(null); } }
/// <summary> /// 读取可空8字节无符号整型值 /// </summary> /// <param name="args">对象创建参数</param> /// <param name="columnName">列名称</param> /// <returns>8字节无符号整型结果</returns> protected UInt64?LoadNullableUInt64(EntityCreatingArgs args, String columnName) { if (args.Columns.Contains(columnName) && !DbConvert.IsDBNull(args.Row[columnName])) { return(DbConvert.ToUInt64(args.Row[columnName])); } else { return(null); } }