Skip to content

Entity Framework ClientSideAttribute [Mapping]

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

(from the official guide)

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

OBSOLETE: Use NotMapped instead.

Corresponds to an unmapped field in Serenity entities. They don't have a corresponding field in database table.

These kinds of fields can be used for temporary calculation, storage and transfer on client and service layers.

public sealed class CustomerRow : Row, IIdRow, INameRow
{
   [NotesEditor, ClientSide]
   public List<NoteRow> NoteList
   {
      get { return Fields.NoteList[this]; }
      set { Fields.NoteList[this] = value; }
   }

See also:

Clone this wiki locally