Click or drag to resize

CrudT Class

Handling CRUD actions for file system storage.
Inheritance Hierarchy

Namespace:  SandcastleTest.Generic.DAL.FileSystemStorage
Assembly:  SandcastleTest (in SandcastleTest.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public abstract class Crud<T> : ICreateReadUpdateDelete<T>
where T : PocoBase

Type Parameters

T
Base class for all POCOs

The CrudT type exposes the following members.

Constructors
  NameDescription
Protected methodCrudT
Initializes a new instance of the CrudT class
Top
Properties
  NameDescription
Private propertyContent
Get all contents of the file, containing all the contents of the entity.
Private propertyFileName
Gets the file name of the current entity. The filename is constructed with the poco class name and the extension .json
Top
Methods
  NameDescription
Public methodCreate
Create a new entity
Public methodDelete
Deletes an entity of T
Public methodEquals (Inherited from Object.)
Private methodExists
Checks, if allEntities contains a entityToCheck
Protected methodFinalize (Inherited from Object.)
Public methodGetEntity
Get an entity by Id
Public methodGetHashCode (Inherited from Object.)
Public methodGetList
Get a list of T
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Private methodStore(ListT)
Private methodStore(String)
Saves a raw string representation to file system.
Public methodToString (Inherited from Object.)
Public methodUpdate
Update an entity of T
Top
See Also