LinkingSetRelationAttribute [Mapping]

Estrusco edited this page May 2, 2016 · 1 revision
Clone this wiki locally

[namespace: Serenity.Data.Mapping] - [assembly: Serenity.Data]

{To-Do: Contents to check}

public sealed class CustomerRow : Row, IIdRow, INameRow
{
   [DisplayName("Customer Id")]
   public String CustomerID
   {
      get { return Fields.CustomerID[this]; }
      set { Fields.CustomerID[this] = value; }
   }

   [LinkingSetRelation(typeof(CustomerRepresentativesRow), "CustomerId", "EmployeeId")]
   public List<Int32> Representatives
   {
      get { return Fields.Representatives[this]; }
      set { Fields.Representatives[this] = value; }
   }

See also: