Class CalculatedColumn<T, U>
public sealed class CalculatedColumn<T, U> : IColumn where T : IEntity
Type Parameters
TU
- Inheritance
-
CalculatedColumn<T, U>
- Implements
- Inherited Members
- Extension Methods
Constructors
CalculatedColumn(string, Func<T, IEnumerable<U>>, Func<T, string>?)
public CalculatedColumn(string header, Func<T, IEnumerable<U>> getValues, Func<T, string>? getText = null)
Parameters
headerstringgetValuesFunc<T, IEnumerable<U>>getTextFunc<T, string>
CalculatedColumn(string, Func<T, U>, Func<T, string>?)
public CalculatedColumn(string header, Func<T, U> getValue, Func<T, string>? getText = null)
Parameters
Methods
GetHeader()
public string GetHeader()
Returns
GetMetadata()
public PropertyInfo? GetMetadata()
Returns
GetText(EntityKernel)
public string GetText(EntityKernel k)
Parameters
Returns
GetValues(EntityKernel)
public object?[] GetValues(EntityKernel k)
Parameters
Returns
- object[]
PrepareExportAsync(EntityKernel, CancellationToken)
last-chance loading - no-op when preloads are done correctly, but necessary sometimes
public Task PrepareExportAsync(EntityKernel _, CancellationToken _ct)