예제 #1
0
        public virtual TEntity Get(int id)
        {
            string query = QB <TEntity> .SelectById(id);

            if (Transaction != null)
            {
                return(Connection.Query <TEntity>(query, transaction: Transaction).FirstOrDefault());
            }

            return(Connection.Query <TEntity>(query).FirstOrDefault());
        }