由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 问一个linq to sql编程问题
相关主题
问问题的同学看过来。A wield thing in Oracle DB
SQL Developer 和 .Net Developerhow to deny a user to use mysql
bbs.mit.edu 的database 是咋样的?Can Microsoft Access handle multiple users?
Access用户级安全性问题求助!Help: 如何在oracle 9i 中添加1 个user?
oracle里面怎幺加user啊?anonymous login in mysql?
MySQL数据库用户管理求助give user previlidge over a table space
各位老大,管理数据库的用户,这样行吗?Help! question on Access
Please help me! Thank you.SQL SERVER 2K5 schema vs. Oracle schema
相关话题的讨论汇总
话题: user话题: linq话题: way话题: sql话题: list
进入Database版参与讨论
1 (共1页)
o****e
发帖数: 916
1
假设有一个table User,primary key is ID(int), one field called Name
given a list of user ID, say HashSet ids
what's the most efficient way to get the list of user?
from u in Users
where ids.Contains(u.ID)
select u
this is the most basic way i can think of. I'm sure there is a better way.
I'm using linq to sql
many thanks!
B*****g
发帖数: 34098
2
linq到dotnet版问。

【在 o****e 的大作中提到】
: 假设有一个table User,primary key is ID(int), one field called Name
: given a list of user ID, say HashSet ids
: what's the most efficient way to get the list of user?
: from u in Users
: where ids.Contains(u.ID)
: select u
: this is the most basic way i can think of. I'm sure there is a better way.
: I'm using linq to sql
: many thanks!

1 (共1页)
进入Database版参与讨论
相关主题
SQL SERVER 2K5 schema vs. Oracle schemaoracle里面怎幺加user啊?
analyze 在oracle里怎么用?MySQL数据库用户管理求助
问个database design的问题各位老大,管理数据库的用户,这样行吗?
大家user权限都是分几个level设定的?Please help me! Thank you.
问问题的同学看过来。A wield thing in Oracle DB
SQL Developer 和 .Net Developerhow to deny a user to use mysql
bbs.mit.edu 的database 是咋样的?Can Microsoft Access handle multiple users?
Access用户级安全性问题求助!Help: 如何在oracle 9i 中添加1 个user?
相关话题的讨论汇总
话题: user话题: linq话题: way话题: sql话题: list