/// <summary> Initializes the class members</summary> private void InitClassMembers() { _attachments = new SD.HnD.DAL.CollectionClasses.AttachmentCollection(); _attachments.SetContainingEntityInfo(this, "BelongsToMessage"); _auditDataMessageRelated = new SD.HnD.DAL.CollectionClasses.AuditDataMessageRelatedCollection(); _auditDataMessageRelated.SetContainingEntityInfo(this, "Message"); _threadReturnsNewIfNotFound = true; _postedByUserReturnsNewIfNotFound = true; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected MessageEntityBase(SerializationInfo info, StreamingContext context) : base(info, context) { _attachments = (SD.HnD.DAL.CollectionClasses.AttachmentCollection)info.GetValue("_attachments", typeof(SD.HnD.DAL.CollectionClasses.AttachmentCollection)); _alwaysFetchAttachments = info.GetBoolean("_alwaysFetchAttachments"); _alreadyFetchedAttachments = info.GetBoolean("_alreadyFetchedAttachments"); _auditDataMessageRelated = (SD.HnD.DAL.CollectionClasses.AuditDataMessageRelatedCollection)info.GetValue("_auditDataMessageRelated", typeof(SD.HnD.DAL.CollectionClasses.AuditDataMessageRelatedCollection)); _alwaysFetchAuditDataMessageRelated = info.GetBoolean("_alwaysFetchAuditDataMessageRelated"); _alreadyFetchedAuditDataMessageRelated = info.GetBoolean("_alreadyFetchedAuditDataMessageRelated"); _thread = (ThreadEntity)info.GetValue("_thread", typeof(ThreadEntity)); if(_thread!=null) { _thread.AfterSave+=new EventHandler(OnEntityAfterSave); } _threadReturnsNewIfNotFound = info.GetBoolean("_threadReturnsNewIfNotFound"); _alwaysFetchThread = info.GetBoolean("_alwaysFetchThread"); _alreadyFetchedThread = info.GetBoolean("_alreadyFetchedThread"); _postedByUser = (UserEntity)info.GetValue("_postedByUser", typeof(UserEntity)); if(_postedByUser!=null) { _postedByUser.AfterSave+=new EventHandler(OnEntityAfterSave); } _postedByUserReturnsNewIfNotFound = info.GetBoolean("_postedByUserReturnsNewIfNotFound"); _alwaysFetchPostedByUser = info.GetBoolean("_alwaysFetchPostedByUser"); _alreadyFetchedPostedByUser = info.GetBoolean("_alreadyFetchedPostedByUser"); this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }