private IBoardPostEntity LoadThreadCollection(PostsTable table) { BasicEntityInfo bi = default(BasicEntityInfo); var r = new PostModelStoreThreadCollection(); SetThreadCollectionData(table, r, ref bi); return(r); }
private void SetThreadCollectionData(PostsTable table, PostModelStoreThreadCollection data, ref BasicEntityInfo bi) { SetThreadCollectionData(table.Views.PostCollectionLoadInfoView.Fetch(), data, ref bi); }
private void SetThreadCollectionData(PostsTable.ViewValues.PostCollectionLoadInfoView v, PostModelStoreThreadCollection data, ref BasicEntityInfo bi) { SetBareEntityData(v, data, ref bi); data.Etag = v.Etag; data.Info = ObjectSerializationService.Deserialize(v.OtherDataBinary) as IBoardPostCollectionInfoSet; data.Stage = v.ChildrenLoadStage; }