/// <summary> /// Converts the specified data to the data view. /// </summary> /// <param name="data">The data to convert.</param> public static View ToView(this DataTable data) { return(ViewConverter.ToView(data)); }
// internal: used in table design (.DesignTable) internal static View ToView <T>() { return(ViewConverter.ToView <T>(default(T))); }
/// <summary> /// Converts the specified data to the data view. /// </summary> /// <typeparam name="T">The type of the data to convert.</typeparam> /// <param name="data">The data to convert.</param> public static View ToView <T>(this IEnumerable <T> data) { return(ViewConverter.ToView(data)); }
/// <summary> /// Converts the specified data to the data view. /// </summary> /// <typeparam name="T">The type of the object to convert.</typeparam> /// <param name="data">The data to convert.</param> public static View ToView <T>(T data) { return(ViewConverter.ToView <T>(data)); }