我有一个存储过程,它明确地列出了许多列,因为它的结果。当我将存储过程添加到Entity Framework v6时,它不会添加_result.cs
文件,并且它将存储过程看作只是返回一个int。
任何人都可以看到我不是吗?
@UserIn int,
@Lat float,
@Lng float
AS
BEGIN
SET NOCOUNT ON;
declare @or geography, @dest geography
select @or = geography::Point(@Lat, @Lng, 4326)
select
Uid, SongKickId, SongKickArtistId, DisplayName, Type, Uri,
StartDate, StartDateTime, City, Lat, Lng, Capacity, ArtistId,
CreateDate, CreateUserId, IsActive, TwitterMsg, SocialMsg,
Cast(0.0 as float) as [dist]
from
SongKickEvent E
where
(E.Lat is not null and E.Lng is not null)
and cast(StartDate as Date) = cast(getdate() as Date)
END