Here is the source code for NoteEntity.cs file it is placed in the Entities directory of the Note.Domain project.
1 | namespace Note.Domain.Entities |
A couple of notes.
- Compared to the Telerik article, these attributes have annotations which help define the validity of the data. I have included 2 using systements to help support this feature.
- The ApplicationKey, and ApplicationSubKey columns are intended to help differentiate the notes for different applications in a company. For example the company might have a GL and a DD application. GL might have AR, and AP objects which depend on notes. So maybe we would have an applicationKey of “GL-AR”, and for objects 1 through 4, we would have applicationSubKeys of 1 through 2.