public virtual RowWrapper Build()
{
if (toTop == null && toBottom == null && parentId == null && siblingId == null)
{
throw new InvalidOperationException("One of the following must be defined to move a row: toTop, "+
"toBottom, parentId, siblingId.");
}
RowWrapper rowWrapper = new RowWrapper();
rowWrapper.toTop = toTop;
rowWrapper.toBottom = toBottom;
rowWrapper.parentId = parentId;
rowWrapper.siblingId = siblingId;
return rowWrapper;
}