home recent topics recent posts search faq  

Huagati Systems Support Forum



register | lost password   open id sign in with Twitter
Messages in this topic - RSS

Home » Huagati DBML/EDMX Tools Support » Error with stored procedure...

Support forum for Huagati DBML/EDMX Tools
4/17/2010 8:58:29 PM

WhiteWhisker
WhiteWhisker
Posts: 1
Hello, I have updated my dbml file today with a new stored procedure and now my project will not compile. This is on sql server 2008, this is what the stored procedure looks like:


CREATE PROCEDURE [dbo].[sp_GetRankingByDate]
@Date DateTime
AS
BEGIN
...
END


and this is the function it generates in the dbml:


[Function(Name="dbo.sp_GetRankingByDate")]
public ISingleResult<spGetRankingByDateResult> spGetRankingByDate([Parameter(Name="[Date]", DbType="datetime")] System.Nullable<System.DateTime> @[Date])
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), @[Date]);
return ((ISingleResult<spGetRankingByDateResult>wink(result.ReturnValue));
}


It throws compiler errors around the parameter: @[Date]

if I change it to:


[Function(Name="dbo.sp_GetRankingByDate")]
public ISingleResult<spGetRankingByDateResult> spGetRankingByDate([Parameter(Name="date", DbType="datetime")] System.Nullable<System.DateTime> date)
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), date);
return ((ISingleResult<spGetRankingByDateResult>wink(result.ReturnValue));
}


everything works correctly, but then I am modifying the designer.cs file, am I doing something wrong? Not sure how to get rid of the smileys in the post...

Thanks
edited by WhiteWhisker on 4/17/2010
edited by WhiteWhisker on 4/17/2010
0 permalink
4/20/2010 1:57:17 PM

Kristofer Andersson
Kristofer Andersson
Moderator
Posts: 331
Hi,

Thanks for reporting. A fix will be included in version 1.87.

Best regards,
Kristofer
0 permalink

Home » Huagati DBML/EDMX Tools Support » Error with stored procedure...





Powered by Jitbit Forum 7.1.0.0 © 2006-2011 Jitbit Software