예제 #1
0
        /// <summary>
        ///     Get String Filter Value from DataTableRequest by property name of T object.
        /// </summary>
        /// <param name="model"></param>
        /// <param name="propertyName"></param>
        /// <param name="filterValue1"></param>
        /// <param name="filterValue2"></param>
        /// <typeparam name="T"></typeparam>
        public static void GetFilterValues <T>(this DataTableRequestModel model, string propertyName, out string filterValue1, out string filterValue2) where T : class, new()
        {
            var filter = model.GetFilterValue <T>(propertyName);

            DataTableRequestHelper.GetFilterValue(filter, out filterValue1, out filterValue2);
        }
예제 #2
0
 /// <summary>
 ///     Get Filter Value from DataTableRequest by property name of T object.
 /// </summary>
 /// <param name="model"></param>
 /// <param name="propertyName"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static string GetFilterValue <T>(this DataTableRequestModel model, string propertyName) where T : class, new()
 {
     return(DataTableRequestHelper.GetFilterValue <T>(model, propertyName));
 }