Tiraggo.Interfaces.tgTransactionScope.AddForCommit C# (CSharp) Method

AddForCommit() public static method

You should never call this directly, EntitySpaces calls this internally.
public static AddForCommit ( ICommittable commit ) : bool
commit ICommittable Any class that implements ICommittable
return bool
        public static bool AddForCommit(ICommittable commit)
        {
            tgTransactionScope current = GetCurrentTx();
            if (current != null)
            {
                if (current.commitList == null)
                {
                    current.commitList = new List<ICommittable>();
                }

                current.commitList.Add(commit);

                return true;
            }
            else
            {
                return false;
            }
        }