如何在字符串中保存查询 [英] How Can I Save A Query In A String

查看:114
本文介绍了如何在字符串中保存查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
i选择下面的实体框架



hi i select with entity framework like below

var query=from obj in context.objs
where textbox.text == obj.property
select new {obj.property1,obj.property2 } ;
query.ToList();





现在我想将查询保存在字符串变量中或用messagebox显示,,,请帮帮我



now i want to save query in a string variable or show with messagebox,,,please help me

推荐答案

你不能。没有办法将该查询转换为字符串。



你想用这个做什么?
You can't. There's no way to convert that query to a string.

What are you trying to do with this?


这篇关于如何在字符串中保存查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆