シーケンスに複数の要素が含まれています
Linqを介してタイプ「RhsTruck」のリストを取得し、それらを表示する際に問題が発生します。 RhsTruckには、Make、Model、Serialなどのプロパティがあります。RhsCustomerには、CustomerName、CustomerAddressなどのプロパティがあります。 「シーケンスに複数の要素が含まれています」というエラーが表示され続けます。何か案は?私はこれに間違った方法で取り組んでいますか? public RhsCustomer GetCustomer(string customerNumber) { using (RhsEbsDataContext context = new RhsEbsDataContext() ) { RhsCustomer rc = (from x in context.custmasts where x.kcustnum == customerNumber select new RhsCustomer() { CustomerName = x.custname, CustomerAddress = x.custadd + ", " + x.custcity CustomerPhone = x.custphone, CustomerFax = x.custfax }).SingleOrDefault(); return …