コード例 #1
0
        public static string /*selection id*/ CreateSelection(string selection_name)
        {
            int    next_id      = NextIdStore.Next(Warehouse.SelectionListTable, null);
            string selection_id = SandId.MakeSelectionId(next_id);

            DynamicTableEntity entity = new DynamicTableEntity(selection_id, EMPTY_ROW_KEY);

            entity["selectionname"] = new EntityProperty(selection_name);
            entity["boardlist"]     = new EntityProperty(string.Empty);

            CreatorConverter.FillEntity(entity, CreatorConverter.Status.Editor, null);

            Warehouse.SelectionListTable.Execute(TableOperation.Insert(entity));

            //don't work for child action. //HttpResponse.RemoveOutputCacheItem("/boardlist");
            Warehouse.BsMapPond.Notify();

            return(selection_id);
        }