asp.net中运行时的实体 [英] entity in run time in asp.net
本文介绍了asp.net中运行时的实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
不好意思我不能输入英文很好
i想在运行时使用实体
例如
hi
excuse me i can not type English very good
i want to use entity in run time
for example
var q=db.news.where(here fill in run time ).tolist();
推荐答案
不确定。 Migth这将对你有所帮助。
http://stackoverflow.com/questions/14621450/dynamic-where-clause-or-in-linq-to-entities [ ^ ]
http://stackoverflow.com/questions/20054742/entity-framework-dynamic-query- with-or-conditions [ ^ ]
Not sure. Migth be this will help you.
http://stackoverflow.com/questions/14621450/dynamic-where-clause-or-in-linq-to-entities[^]
http://stackoverflow.com/questions/20054742/entity-framework-dynamic-query-with-or-conditions[^]
例如我有这样的查询
for example i have a query like this
var q=db.news.where(p=>p.id==3).tolist();
和另一次我shuold有这样的查询
and another time i shuold have a query like this
var q=db.news.where(p=>p.id==3 || p.id=10).tolist();
和。 ..
i想要在条件下使用运行时间
或其他样品
i想从用户那里得到条件
and ...
i wanna use run time in condition
or another sample
i wanna get condition from user
这篇关于asp.net中运行时的实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文