Skip to main content

ReferenceFieldAttribute

Populate with a field from a foreign table in AutoQuery and Load* APIs

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
[AttributeUsage(AttributeTargets.Property)]
public class ReferenceFieldAttribute : AttributeBase, _Attribute

Properties

Model

Foreign Key Table name

View Source
Declaration
public Type Model { get; set; }

Id

The Field name on current Model to use for the Foreign Key Table Lookup

View Source
Declaration
public string Id { get; set; }

Field

Specify Field to reference (if different from property name)

View Source
Declaration
public string Field { get; set; }

Implements

  • System.Runtime.InteropServices._Attribute