note
VeloxDB is still in beta and APIs are subject to change. We are in the process of completing the documentation, so some sections may be incomplete or empty at this time.
Class DbAPIOperationAttribute
Specifies that the method is a database API operation. Database API operations can be invoked from the client using VeloxDB protocol.
Inheritance
Namespace: VeloxDB.Protocol
Assembly: vlxc.dll
Syntax
public sealed class DbAPIOperationAttribute : Attribute
Constructors
DbAPIOperationAttribute()
Declaration
public DbAPIOperationAttribute()
Properties
Name
Specifies the name of the database operation. If omitted method's name is used.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ObjectGraphSupport
Specifies whether the request and response data require the serializer to support proper serialization of object graphs. Support for object graphs makes sure that each object is only transfered once in a situation where a single object is referenced by multiple other objects. It also handles circular references correctly, which whould otherwise produce an exception. It does introduce overhead in serialization process for situations where no such support is needed (e.g. object graph is a tree).
Declaration
public DbAPIObjectGraphSupportType ObjectGraphSupport { get; set; }
Property Value
Type | Description |
---|---|
DbAPIObjectGraphSupportType |
OperationType
Specifies the type of the database operation with regards to whether the operation performs only read or both read and write operations on the database. The default value is ReadWrite.
Declaration
public DbAPIOperationType OperationType { get; set; }
Property Value
Type | Description |
---|---|
DbAPIOperationType |