コード例 #1
0
        public LambdaDeleteHelper <TEntity> LambdaDelete <TEntity>(IDbTransaction transaction = null, int?commandTimeout = null) where TEntity : class
        {
            DbConnObj ConnObj = GetConnObj(transaction);

            if (ConnObj.DbConnection != null)
            {
                return(ConnObj.DbConnection.LambdaDelete <TEntity>(transaction, commandTimeout));
            }
            else
            {
                return(DapperExtension.LambdaDelete <TEntity>(ConnKey, commandTimeout));
            }
        }