RowFieldsProvider class
namespace: Serenity.Data assembly: Serenity.Net.Entity
Contains extension methods and settings for row fields providers
public static class RowFieldsProvider
Public Members
name | description |
---|---|
static Current { get; } | Gets current row fields provider. Returns async local provider if available, otherwise the default provider. |
static Resolve<TFields>() | Resolves a fields class using current row fields provider |
static Resolve<TFields>(…) | Resolves an aliased fields class using current row fields provider |
static SetDefault(…) | Sets default row fields provider. This instance is required as rows might have to be created in contexts where dependency injection is not possible, like deserialization. If using a DI container, set this at startup to the same singleton service you register with DI. |
static SetDefaultFrom(…) | Sets default row fields provider by resolving it from the service provider. |
static SetLocal(…) | Sets local row fields provider for current thread and async context. Useful for background tasks, async methods, and testing to set provider locally and for auto spawned threads. |
static SetLocalFrom(…) | Sets local row fields provider by resolving it from the service provider. |
See Also
- Source: RowFieldsProvider.cs