Interface IWritable<T>
This interface provides a minimalistic generic approach to write generic data to any kind of (persistent) data sink.
Namespace: TeleScope.Persistence.Abstractions
Assembly: TeleScope.Persistence.Abstractions.dll
Syntax
public interface IWritable<in T>
Type Parameters
Name | Description |
---|---|
T | The type that is given on the application side. |
Properties
| Improve this Doc View SourcePermissions
Gets the flags of permissions how files may be treated.
Declaration
WritePermissions Permissions { get; }
Property Value
Type | Description |
---|---|
WritePermissions |
Methods
| Improve this Doc View SourceHasPermission(WritePermissions)
Shall check, if the implementation has the permission handed over as parameter.
Declaration
bool HasPermission(WritePermissions permission)
Parameters
Type | Name | Description |
---|---|---|
WritePermissions | permission | The permission that will be testet. |
Returns
Type | Description |
---|---|
System.Boolean | True if the permission flags are present, otherwise false. |
Write(IEnumerable<T>)
Writes a collection of type T to a given data sink. If there is only one data object there is the need to provide a collection with one element.
Declaration
void Write(IEnumerable<T> data)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | data | The application-side data collection of type T. |