private IBoardPostEntity LoadPostCollection(PostsTable table) { BasicEntityInfo bi = default(BasicEntityInfo); var r = new PostModelStoreCollection(); SetPostCollectionData(table, r, ref bi); return(r); }
private void SetPostCollectionData(PostsTable table, PostModelStoreCollection data, ref BasicEntityInfo bi) { SetPostCollectionData(table.Views.PostCollectionLoadInfoView.Fetch(), data, ref bi); }
private void SetPostCollectionData(PostsTable.ViewValues.PostCollectionLoadInfoView v, PostModelStoreCollection 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; }