0
我有兩張表Employee和Permenent表。 permenet表是員工 的ISA表下面是兩個表WCF linq從多個表中查詢
create table employees(
employee_no varchar(5),
name varchar(50),
nic varchar(10),
address varchar(100),
designation varchar(20),
Land varchar(10),
Mobile varchar(10),
constraint pkemployees primary key(employee_no),
constraint fkemployees foreign key(land,mobile) references telephone)
create table permenenet(
username varchar(20),
password varchar(10),
password_hint varchar(50),
employee_no varchar(5),
constraint fkpermenet foreign key(employee_no) references employees,
constraint pkpermenet primary key(employee_no).
我已創建WCF服務,以獲取名稱和指定
public List<employee>get_name(string uname){
var resl = (from per in dc.permenenets
join emp in dc.employees on per.employee_no equals emp.employee_no
where per.username == uname && per.employee_no == emp.employee_no
select emp);
return resl.ToList();
}
,但是當我與WCF客戶端測試的架構或從WPF應用程序獲取數據我得到空答案。幫助表示讚賞