Shunde.NET Framework Class Library

ObjectUtils.SaveListOfObjects Method 

Saves an array of DBObjects

public static void SaveListOfObjects(
   IEnumerable<T> objects
);

Parameters

IEnumerable<T>

Exceptions

Exception Type Condition
ValidationException Thrown if an object in the array fails the database constraints. The Message property contains detailed information on why it failed, which may or may not be suitable to show on the end user, depending on the situation.
ConcurrencyException Thrown if an object is read and updated by more than one user at the same time. The first to save will have no problem, but if anyone tries to save subsequent to another save without re-reading the data, then this exception will be thrown. The Message property contains detailed information suitable to be shown to the end user.

See Also

ObjectUtils Class | Shunde.Utilities Namespace