缺少SDK平台Android,API 18(Missing SDK platform Android, API 18)
当我尝试安装API 18时,它只显示
"Google API 18"
(没有更多)。 现在我尝试从Android SDK Manager
安装这些google API,它显示一条消息"this package depends on "Missing SDK platform Android, API 18"
,并且安装按钮被禁用。有人在这里有任何想法如何安装API 18(4.3_MR2 sdk)与eclipse
While I am trying to Install API 18 it shows only
"Google API 18"
(nothing more). Now if I try to install these google APIs fromAndroid SDK Manager
it shows a message"this package depends on "Missing SDK platform Android, API 18"
. and Install button is disabled.Does anybody here have Any idea how to install API 18(4.3_MR2 sdk) with eclipse
原文:https://stackoverflow.com/questions/17916966
最满意答案
from s in db.Services join sa in db.ServiceAssignments on s.Id equals sa.ServiceId where sa.LocationId == 1 select s
db
是你的DbContext
。 生成的查询将看起来像(EF6的样本):SELECT [Extent1].[Id] AS [Id] -- other fields from Services table FROM [dbo].[Services] AS [Extent1] INNER JOIN [dbo].[ServiceAssignments] AS [Extent2] ON [Extent1].[Id] = [Extent2].[ServiceId] WHERE [Extent2].[LocationId] = 1
from s in db.Services join sa in db.ServiceAssignments on s.Id equals sa.ServiceId where sa.LocationId == 1 select s
Where
db
is yourDbContext
. Generated query will look like (sample for EF6):SELECT [Extent1].[Id] AS [Id] -- other fields from Services table FROM [dbo].[Services] AS [Extent1] INNER JOIN [dbo].[ServiceAssignments] AS [Extent2] ON [Extent1].[Id] = [Extent2].[ServiceId] WHERE [Extent2].[LocationId] = 1
相关问答
更多-
from s in db.Services join sa in db.ServiceAssignments on s.Id equals sa.ServiceId where sa.LocationId == 1 select s db是你的DbContext 。 生成的查询将看起来像(EF6的样本): SELECT [Extent1].[Id] AS [Id] -- other fields from Services table FROM [dbo].[Services] AS [Ex ...
-
复杂的实体框架查询(complex entity framework query)[2023-01-01]
你真的应该有Option Strict On。 既然不是,我不得不猜测数据类型,因为你没有强烈地输入你的查询。 此外,你没有准确说出要添加到列表中的内容,所以我猜对了symId 。 如果我的猜测错误,请更改该部分。 无论如何,看看这样的东西是否会起作用: Public Shared Function GetDailyEquityDownMoves(ByVal numdaysback As Int32) As List(Of String) Dim qualifiedDownStocks As New ... -
对于左连接,您应该使用带有DefaultIfEmpty的into子句 var pendsc = (from p in _context.Pends join v in _context.Viewers on p.Tipo equals v.Tipo join g in _context.Group on v.Grupo ...
-
使用实体框架中的linq查询替换SQL连接和组查询(Replacing SQL join and group query with linq query in Entity Framework)[2022-06-15]
感谢@ 3-14159265358979323846264,这里有一个很好的例子 Thanks to @3-14159265358979323846264, a real nice example can be found here -
自我加入实体框架(Self join in Entity Framework)[2022-03-11]
嗯,我对EF基本不了解,但看起来像这样: var query = from c1 in db.Category where c1.ParentCategoryId == null join c2 in db.Category on c1.CategoryId equals c2.ParentCategoryId select c2; Well, I don't know much about EF, but that looks so ... -
实体框架查询帮助(Entity Framework Query Help)[2022-09-14]
如果您编写了您使用的方法(DB first / Code First / POCO),那将会很好。 如果DB先容易: context.Categories.Include('Subcategories').ToList();//list of categories and their subcategories context.Categories.Select(c => new { Category = c, Postings = c.Postings.Count() }).ToList();//cat ... -
如何使用.Include查询实体框架6强制外连接(How to force outer join with .Include query Entity Framework 6)[2022-03-29]
它执行INNER JOIN因为您已将FK属性配置为[ Required ]。 因此从EF的角度来看,相关的User记录应该始终存在。 如果不是这种情况,则表示您的模型和数据库不同步。 从Request.UserPhone属性中删除[ Required ]注释,您就完成了。 更新: EF非常依赖通过约定,数据注释和流畅配置提供的模型元数据。 所有决定都是基于该信息做出的。 例如,当您根据需要配置持久性原始属性时,将删除查询中针对该属性的所有null检查,并在查询转换时将其解析为常量true或false 。 这 ... -
如何在针对实体框架的LINQ查询中进行“连接”(How to do a “join” in a LINQ query against the Entity Framework)[2023-10-28]
尝试: from t3 in dataContext.Table3 where t3.Guidfield == someGuid from t2 in t3.Table2 where t2.Field // boolean field is true select t2.Table1; 编辑:根据要求,等效的lambda表达式语法: dataContext.Table3.Where(t3 => t3.Guidfield == someGuid) .SelectM ... -
实体框架查询加入问题(Entity Framework Query Join issue)[2019-10-11]
我不得不猜测你的课程是什么样子,但看看这段代码:( https://dotnetfiddle.net/TVqzse ) 这个片段对你来说最有趣: var favoriteColours = people.SelectMany(p => p.FavouriteColours); foreach(var favoriteColour in favoriteColours) { System.Console.WriteLine(favoriteColour.Color.ColorName); } ... -
将条件移动到where子句(对于内连接,它确实无关紧要): join t3 in ctx.T3 on t2.pk2 equals t3.fk2 where t3.x == null 或使用以下内容 join t3 in ctx.T3 on new { A = t2.pk2, B = (DateTime?)null } equals new { A = t3.fk2, B = t3.x } Either move the condition to where clause (for inn ...