Skip to content

BaseRepository class

namespace: Serenity.Services   assemblySerenity.Net.Services

A base class that can be used for repositories (obsolete, BaseRequestHandler) that accept a IRequestContext instance.

public class BaseRepository
parameter description
context Request context

Public Members

name description
BaseRepository(…) A base class that can be used for repositories (obsolete, BaseRequestHandler) that accept a IRequestContext instance.

Protected Members

name description
Cache { get; } Gets the cache from the request context.
Context { get; } Gets the request context.
Localizer { get; } Gets the text localizer from the request context.
Permissions { get; } Gets the permission service from the request context.
User { get; } Gets the user from the request context.

Exceptions

exception condition
ArgumentNullException context is null.

Remarks

Initializes a new instance of the class.

See Also