コード例 #1
0
ファイル: QueryTable.cs プロジェクト: meikeric/deveeldb-linq
        public T FindById(object id)
        {
            if (id == null)
            {
                throw new ArgumentNullException("id");
            }

            try {
                return(EntityTable.GetById(id));
            } catch (Exception ex) {
                throw new QueryException(String.Format("Error while querying type '{0}' by id.", typeof(T)), ex);
            }
        }