Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 // internal: used in table design (.DesignTable)
 internal static View ToView <T>()
 {
     return(ViewConverter.ToView <T>(default(T)));
 }
Beispiel #3
0
 /// <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));
 }
Beispiel #4
0
 /// <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));
 }