Class Extensions
Extensions methods.
Inheritance
System.Object
Extensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unosquare.Tubular
Syntax
public static class Extensions
Methods
AdjustTimeZone(Object, Int32)
Adjust a timezone data in a object.
Declaration
public static object AdjustTimeZone(this object data, int timezoneOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Object | data | The data. |
System.Int32 | timezoneOffset | The timezone offset. |
Returns
Type | Description |
---|---|
System.Object | The same object with DateTime properties adjusted to the timezone specified. |
CreateGridDataResponse(GridDataRequest, IQueryable, Extensions.ProcessResponseSubset)
Generates a GridDataResponse using the GridDataRequest and an IQueryable source, like a DataSet in Entity Framework.
Declaration
public static GridDataResponse CreateGridDataResponse(this GridDataRequest request, IQueryable dataSource, Extensions.ProcessResponseSubset preProcessSubset = null)
Parameters
Type | Name | Description |
---|---|---|
GridDataRequest | request | The Tubular Grid Request. |
IQueryable | dataSource | The IQueryable source. |
Extensions.ProcessResponseSubset | preProcessSubset | The subset's process delegate. |
Returns
Type | Description |
---|---|
GridDataResponse | A grid response. |