|
@@ -257,4 +257,13 @@ namespace InABox.Core
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ public static class CoreRowExtensions
|
|
|
+ {
|
|
|
+ public static IEnumerable<T> ToObjects<T>(this IEnumerable<CoreRow> rows)
|
|
|
+ where T : BaseObject, new()
|
|
|
+ {
|
|
|
+ return rows.Select(x => x.ToObject<T>());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|