我得到了这个我想要转换为Linq的SQL查询.这是一个问题:
我正在制作一个需要从3个不同的表中返回值的asp.net api
CREATE TABLE Locatie (
locatieId INT IDENTITY(1,1) not null,
postcode VARCHAR(10) not null,
huisnummer INT not null,
adres VARCHAR(50) not null,
plaats VARCHAR(50) not null,
CREATE TABLE Vereniging (
verenigingId INT IDENTITY(1,1) not null,
locatieId INT not null,
naam VARCHAR(50) not null,
facebookGroupId BIGINT null,
CREATE TABLE Saldo (
saldoId INT IDENTITY(1,1) not null,
lidId INT not null,
verenigingId INT not null,
bedrag SMALLMONEY not null,
Run Code Online (Sandbox Code Playgroud)
我遗漏了所有的外国钥匙和小学生.这只是为了澄清我想要的东西.我的问题是,我有一个需要从几个表返回信息的函数.sql查询看起来像这样=
Select v.verenigingId, l.postcode, l.huisnummer, l.adres,l.plaats,v.naam,v.facebookGroupId
from Vereniging v inner join …Run Code Online (Sandbox Code Playgroud)