0
hi i have the following code:

但我得到一个错误'newwcf.Client'不包含'Where'的定义
请帮助..

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;

namespace newwcf
{
    public class myservice : Imyservice 
    {
      public  List<ClientDetails> getClient()
        {
            List<ClientDetails> client = new List<ClientDetails>();
            var sql = Client.Where(cn => cn.ClientName).ToList();  //getting the error here
            return sql;

        }

    }
}
4

1 回答 1

2

c# 区分大小写...你应该试试吗

var sql = client.Where(cn => cn.ClientName).ToList();

于 2013-05-22T06:37:40.460 回答