protected NewsItemEntity(SerializationInfo info, StreamingContext context)
: base(info, context)
{
if(SerializationHelper.Optimization != SerializationOptimization.Fast)
{
_newsFiles = (EntityCollection<NewsFileEntity>)info.GetValue("_newsFiles", typeof(EntityCollection<NewsFileEntity>));
_newsItemLocalizations = (EntityCollection<NewsItemLocalizationEntity>)info.GetValue("_newsItemLocalizations", typeof(EntityCollection<NewsItemLocalizationEntity>));
_newsPublishQueues = (EntityCollection<NewsPublishQueueEntity>)info.GetValue("_newsPublishQueues", typeof(EntityCollection<NewsPublishQueueEntity>));
_snRelationships = (EntityCollection<SnRelationshipEntity>)info.GetValue("_snRelationships", typeof(EntityCollection<SnRelationshipEntity>));
_aspnetUser = (AspnetUsersEntity)info.GetValue("_aspnetUser", typeof(AspnetUsersEntity));
if(_aspnetUser!=null)
{
_aspnetUser.AfterSave+=new EventHandler(OnEntityAfterSave);
}
_newsCategory = (NewsCategoryEntity)info.GetValue("_newsCategory", typeof(NewsCategoryEntity));
if(_newsCategory!=null)
{
_newsCategory.AfterSave+=new EventHandler(OnEntityAfterSave);
}
this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
}
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}