你怎么能加入一个子查询本身?我想要做如下的事情。 SELECT
four.src AS start, four.dest AS layover, f.dest AS destination
FROM
(SELECT 1 AS src, 2 as dest union all select 2, 3) AS four
JOIN
four AS f
ON f.src
[更新]我想下面的索引定义并收到以下错误消息: Cannot create primary xml, selective xml or spatial index 'SI_Property' on table 'BTSOne.dbo.Properties', column 'Point', because the column is computed.
这是有道理的,但现在我回来了到一个方。
我正在使用.NET 4.5和EF 6.0(也试过6.1.3)。 我有位置地理列在实体表(System.Data.Entity.Spatial.DbGeography)。 using System.Data.Spatial; //also tried Entity one
public class Entity
{
public DbGeography Location {get;s