// 預設會取出所有Children public T FindById(string id) { return(dbSet.Include(context.GetIncludePaths(typeof(T))).SingleOrDefault(entry => entry.Id.Equals(id))); }
// 預設會取出所有Children public T FindById(string id) { return(dbSet.Include(context.GetIncludePaths(typeof(T))).SingleOrDefault(entry => entry.Id.Equals(id))); }