Skip to content

Entity Framework LinkingSetRelationAttribute [Mapping]

Victor Tomaili edited this page May 3, 2021 · 1 revision

[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:

  • [MasterDetailRelationAttribute](MasterDetailRelationAttribute [Mapping])
Clone this wiki locally