当我在linqpad中运行此查询时:
Customer.Where(c => (c.CustomerName == "test"))
Run Code Online (Sandbox Code Playgroud)
它返回匹配的记录.
当我尝试在visual studio中运行相同的查询时,它不会返回任何匹配的记录.这是我正在使用的代码:
List<Customer> customerList = new List<Customer>();
using (DBEntities db = new DBEntities())
{
try
{
customerList = db.Customer.Where(c => (c.customerName == "test")).ToList();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
return customerList;
Run Code Online (Sandbox Code Playgroud)
任何人都可以看到为什么它在linqpad中工作但在visual studio中不起作用?
我已将我的Android应用程序的背景设置为白色,并使用灯光主题尝试获得白色背景.我通过在Manifest中设置以下属性来实现:
android:background="@android:color/white"
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
Run Code Online (Sandbox Code Playgroud)
这给了我一个白色的背景,但也有从浅灰色到白色的颜色渐变.我想让背景为纯白色,没有渐变.有没有办法轻松实现这一目标?