Skip to main content

CrudEvent

Capture a CRUD Event

Assembly: ServiceStack.Client.dll
View Source
Declaration
[DataContract]
public class CrudEvent : IMeta

Properties

Id

View Source
Declaration
[DataMember(Order = 1)]
public long Id { get; set; }

EventType

AutoCrudOperation, e.g. Create, Update, Patch, Delete, Save

View Source
Declaration
[DataMember(Order = 2)]
public string EventType { get; set; }

Model

DB Model

View Source
Declaration
[Index]
[DataMember(Order = 3)]
public string Model { get; set; }

ModelId

Primary Key of DB Model

View Source
Declaration
[Index]
[DataMember(Order = 4)]
public string ModelId { get; set; }

EventDate

Date of Event (UTC)

View Source
Declaration
[DataMember(Order = 5)]
public DateTime EventDate { get; set; }

RowsUpdated

Rows Updated if available

View Source
Declaration
[DataMember(Order = 6)]
public long? RowsUpdated { get; set; }

RequestType

Request DTO Type

View Source
Declaration
[DataMember(Order = 7)]
public string RequestType { get; set; }

RequestBody

Serialized Request Body

View Source
Declaration
[DataMember(Order = 8)]
[StringLength(2147483647)]
public string RequestBody { get; set; }

UserAuthId

UserAuthId if Authenticated

View Source
Declaration
[DataMember(Order = 9)]
public string UserAuthId { get; set; }

UserAuthName

UserName or unique User Identifier

View Source
Declaration
[DataMember(Order = 10)]
public string UserAuthName { get; set; }

RemoteIp

View Source
Declaration
[DataMember(Order = 11)]
public string RemoteIp { get; set; }

Urn

URN format: urn:{requesttype}:{ModelId}

View Source
Declaration
[DataMember(Order = 12)]
public string Urn { get; set; }

RefId

Custom Reference Data with integer Primary Key

View Source
Declaration
[DataMember(Order = 13)]
public int? RefId { get; set; }

RefIdStr

Custom Reference Data with non-integer Primary Key

View Source
Declaration
[DataMember(Order = 14)]
public string RefIdStr { get; set; }

Meta

Custom Metadata to attach to this event

View Source
Declaration
[DataMember(Order = 15)]
public Dictionary<string, string> Meta { get; set; }

Implements