SenseNet.ContentRepository.SavingAction.Create C# (CSharp) Method

Create() public static method

public static Create ( Node node ) : SavingAction
node Node
return SavingAction
        public static SavingAction Create(Node node)
        {
            var genericContent = node as GenericContent;
            var savingAction = (genericContent == null) ? CreateForNode(node) : CreateForGenericContent(genericContent);
            if (node.Id == 0)
            {
                savingAction.ExpectedVersion = node.Version;
                savingAction.ExpectedVersionId = node.VersionId;
            }

            return savingAction;
        }
        private static SavingAction CreateForNode(Node node)

Same methods

SavingAction::Create ( ) : void

Usage Example

Exemplo n.º 1
0
        public virtual void Reject()
        {
            var action = SavingAction.Create(this);

            action.Reject();
            action.Execute();
        }
All Usage Examples Of SenseNet.ContentRepository.SavingAction::Create