zoukankan
html css js c++ java
Linq to entity多表查询如何返回查询结果
1、定义一个新的类别,类别包含了多个表的属性 2、使用视图,和上面基本一样 3、使用储存过程,直接返回结果集 4、使用匿名对像,返回IQueryable, 例:
public
IQueryable
GetAllList
()
{
var query
=
from a in tb_a join b in tb_b on a
.
id equels b
.
id select
new
{
a
.
id
,
b
.
id
};
return
query
;
}
固定链接:
Linq to entity多表查询如何返回查询结果 | 数据库之家
+复制链接
参考资料:
-------------------------------------------------------------------------------------------------------------------------------------------------
数据库优化
数据库教程
数据库实战经验分享博客
百度云下载
评测
查看全文
相关阅读:
zoj 2812
按1的个数排序
输出等腰梯形
约瑟夫环杂题
九度oj 题目1369:字符串的排列
.NET CORE LOG
.NET CORE 配置
dotnet core 数据库
asp.net core mvc简介
dotnet core 项目
原文地址:https://www.cnblogs.com/longle/p/2269099.html
最新文章
zoj 2109 FatMouse' Trade
zoj 1205 Martian Addition
zoj 1949 Error Correction
zoj 2736 Daffodil number
zoj 1188 DNA Sorting
zoj 2850 Beautiful Meadow
zoj 2857 Image Transformation
zoj 2001 Adding Reversed Numbers
zoj 1763 A Simple Question of Chemistry
zoj 1151 Word Reversal
热门文章
zoj 1295 Reverse Text
zoj 1241 Geometry Made Simple
zoj 1251 Box of Bricks
zoj 1115 Digital Roots
zoj 2932 The Seven Percent Solution
zoj 2947 Abbreviation
zoj 2886 Look and Say
ZOJ 2478 Encoding
zoj 1383 Binary Numbers
zoj 1240
Copyright © 2011-2022 走看看