Table of Contents

Class JoinSlotAttribute

Namespace
NextORM.Core
Assembly
nextorm.core.dll

Marks a generated alias projection property with the 1-based slot of the joined table it exposes.

A projection produced by Join exposes its items as Item1..Item8; a generated alias projection additionally exposes lexical aliases (for example Buyer/Approver) whose types may repeat. The trailing digits of ItemN carry the slot position; this attribute carries the same information for a member whose name does not. The translator reads it to resolve the right table alias when the joined type occurs more than once.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class JoinSlotAttribute : Attribute
Inheritance
JoinSlotAttribute
Inherited Members
Extension Methods

Constructors

JoinSlotAttribute(int)

Creates the marker for a projection member occupying position.

public JoinSlotAttribute(int position)

Parameters

position int

The 1-based slot among all projection items (the base entity is slot 1).

Properties

Position

The 1-based slot among all projection items (the base entity is slot 1).

public int Position { get; }

Property Value

int