Show / Hide Table of Contents

Class MultiSave

Sometimes you need to save a number of Row or other kind of updating objects, and want to do so efficiently and in a single transaction. If so, add them to an instance of this class, and ultimately persist everything using Save.

Inheritance
Object
NestedPersist
NestedPersistFacade
MultiSave
Implements
INestedPersist
Inherited Members
NestedPersistFacade.OnPreIdUpdate()
NestedPersistFacade.OnPrimaryKeyRequest(PKContainer)
NestedPersistFacade.OnPrimaryKeyUpdate(PKContainer)
NestedPersistFacade.OnIdUpdate()
NestedPersistFacade.OnSave(BatchSave)
NestedPersistFacade.OnSaved(Boolean)
NestedPersistFacade.IsDirty
NestedPersist._saveOwner
NestedPersist._isSaving
NestedPersist.SetSaveOwner(INestedPersist)
NestedPersist.Save()
NestedPersist.INestedPersist.OnPreIdUpdate()
NestedPersist.INestedPersist.OnPrimaryKeyRequest(PKContainer)
NestedPersist.INestedPersist.OnPrimaryKeyUpdate(PKContainer)
NestedPersist.INestedPersist.OnIdUpdate()
NestedPersist.INestedPersist.OnSave(BatchSave)
NestedPersist.INestedPersist.OnSaved(Boolean)
NestedPersist.IsSaving
NestedPersist.OnElementSaved
NestedPersist.OnElementIdUpdate
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public class MultiSave : NestedPersistFacade, INestedPersist

Constructors

MultiSave()

Declaration
public MultiSave()

MultiSave(INestedPersist)

Declaration
public MultiSave(INestedPersist item)
Parameters
Type Name Description
INestedPersist item

MultiSave(IEnumerable<INestedPersist>)

Declaration
public MultiSave(IEnumerable<INestedPersist> items)
Parameters
Type Name Description
IEnumerable<INestedPersist> items

Properties

IsDeleted

Returns true if all the INestedPersist items are deleted.

Declaration
public override bool IsDeleted { get; }
Property Value
Type Description
Boolean
Overrides
NestedPersist.IsDeleted

IsMarkedForDelete

Gets or sets the IsMarkedForDelete for each item in the INestedPersist collection.

Declaration
public override bool IsMarkedForDelete { get; set; }
Property Value
Type Description
Boolean
Overrides
NestedPersist.IsMarkedForDelete

Methods

Add(INestedPersist[])

Declaration
public void Add(params INestedPersist[] items)
Parameters
Type Name Description
INestedPersist[] items

AddRange(IEnumerable<INestedPersist>)

Declaration
public void AddRange(IEnumerable<INestedPersist> items)
Parameters
Type Name Description
IEnumerable<INestedPersist> items

GetFacadingItems()

Declaration
protected override IEnumerable<INestedPersist> GetFacadingItems()
Returns
Type Description
IEnumerable<INestedPersist>
Overrides
NestedPersistFacade.GetFacadingItems()

Implements

INestedPersist

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top