/// <summary> /// 获取URL参数数据到对象 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="context"></param> /// <param name="obj"></param> /// <returns></returns> public static T GetQueryData <T>(this IOwinContext context, T obj) where T : class { return(context.GetQueryData <T>(obj, false)); }
/// <summary> /// 获取URL参数数据到对象 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="context"></param> /// <returns></returns> public static T GetQueryData <T>(this IOwinContext context, params String[] ignoreProperties) where T : class { return(context.GetQueryData <T>(false, ignoreProperties)); }