Dos.ORM.Database.CloseConnection(System.Data.Common.DbTransaction)

Here are the examples of the csharp api class Dos.ORM.Database.CloseConnection(System.Data.Common.DbTransaction) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

6 Examples 7

1. Example

Project: Dos.ORM
Source File: DbSession.cs
public void CloseTransaction(DbTransaction tran)
        {
            db.CloseConnection(tran);
        }

2. Example

Project: Dos.ORM
Source File: DbSession.cs
public void CloseTransaction(DbTransaction tran)
        {
            db.CloseConnection(tran);
        }

3. Example

Project: Dos.ORM
Source File: DbSession.cs
public void CloseTransaction(DbTransaction tran)
        {
            db.CloseConnection(tran);
        }

4. Example

Project: Dos.ORM
Source File: BatchCommander.cs
public void Close()
        {
            try
            {
                ExecuteBatch();

                if (tran != null && (!isUsingOutsideTransaction))
                {
                    tran.Commit();
                }
            }
            catch
            {
                if (tran != null && (!isUsingOutsideTransaction))
                {
                    tran.Rollback();
                }

                throw;
            }
            finally
            {
                if (tran != null && (!isUsingOutsideTransaction))
                {
                    db.CloseConnection(tran);
                }
            }
        }

5. Example

Project: Dos.ORM
Source File: BatchCommander.cs
public void Close()
        {
            try
            {
                ExecuteBatch();

                if (tran != null && (!isUsingOutsideTransaction))
                {
                    tran.Commit();
                }
            }
            catch
            {
                if (tran != null && (!isUsingOutsideTransaction))
                {
                    tran.Rollback();
                }

                throw;
            }
            finally
            {
                if (tran != null && (!isUsingOutsideTransaction))
                {
                    db.CloseConnection(tran);
                }
            }
        }

6. Example

Project: Dos.ORM
Source File: BatchCommander.cs
public void Close()
        {
            try
            {
                ExecuteBatch();

                if (tran != null && (!isUsingOutsideTransaction))
                {
                    tran.Commit();
                }
            }
            catch
            {
                if (tran != null && (!isUsingOutsideTransaction))
                {
                    tran.Rollback();
                }

                throw;
            }
            finally
            {
                if (tran != null && (!isUsingOutsideTransaction))
                {
                    db.CloseConnection(tran);
                }
            }
        }