public EntityNote Copy() { Server.Application.EntityNote serverObject = (Server.Application.EntityNote)ToServerObject(); EntityNote copiedObject = new EntityNote(application, serverObject); return(copiedObject); }
public override Object ToServerObject() { Server.Application.EntityNote serverObject = new Server.Application.EntityNote(); MapToServerObject(serverObject); return(serverObject); }
protected void BaseConstructor(Application applicationReference, Server.Application.EntityNote serverEntityNote) { base.BaseConstructor(applicationReference, serverEntityNote); entityId = serverEntityNote.EntityId; relatedEntityId = serverEntityNote.RelatedEntityId; relatedEntityType = serverEntityNote.RelatedEntityType; relatedEntityObjectId = serverEntityNote.RelatedEntityObjectId; relatedObjectType = serverEntityNote.RelatedObjectType; relatedObjectId = serverEntityNote.RelatedObjectId; dataSource = serverEntityNote.DataSource; importance = serverEntityNote.Importance; noteTypeId = serverEntityNote.NoteTypeId; subject = serverEntityNote.Subject; effectiveDate = serverEntityNote.EffectiveDate; terminationDate = serverEntityNote.TerminationDate; contents = new List <Mercury.Server.Application.EntityNoteContent> (); contents.AddRange(serverEntityNote.Contents); return; }
public virtual void MapToServerObject(Server.Application.EntityNote serverObject) { base.MapToServerObject((Server.Application.CoreObject)serverObject); serverObject.EntityId = entityId; serverObject.RelatedEntityId = relatedEntityId; serverObject.RelatedEntityType = relatedEntityType; serverObject.RelatedEntityObjectId = relatedEntityObjectId; serverObject.RelatedObjectType = relatedObjectType; serverObject.RelatedObjectId = relatedObjectId; serverObject.DataSource = dataSource; serverObject.Importance = importance; serverObject.NoteTypeId = noteTypeId; serverObject.Subject = subject; serverObject.EffectiveDate = effectiveDate; serverObject.TerminationDate = terminationDate; serverObject.Contents = new Mercury.Server.Application.EntityNoteContent[contents.Count]; contents.CopyTo(serverObject.Contents, 0); return; }
public EntityNote(Application applicationReference, Server.Application.EntityNote serverEntityNote) { BaseConstructor(applicationReference, serverEntityNote); return; }