stored procedure support

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
jbmeeh
Posts: 3
Joined: Fri 21 Nov 2008 18:47

stored procedure support

Post by jbmeeh » Fri 21 Nov 2008 18:51

Are there any plans to add support for stored procedures and packages within the entity developer? If there are, in what timeframe?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 24 Nov 2008 09:30

We plan to support Stored Procedures, but no timeframe can be provided.

Anchor
Posts: 31
Joined: Mon 08 Dec 2008 21:02
Location: Massachustts/USA

Post by Anchor » Mon 08 Dec 2008 21:07

I too would be interested in this.

So, can you add in suuport for stored procedures by modifying the generated data context code?

Thanks,
Joe

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 09 Dec 2008 12:07

No, such a support is unlikely to be provided. But we are working on an alternative solution.

Anchor
Posts: 31
Joined: Mon 08 Dec 2008 21:02
Location: Massachustts/USA

Post by Anchor » Tue 09 Dec 2008 18:08

I just want to make sure I understand this correctly.

So, I wouldn't be able to edit the DataContext.cs file and add in my own definition for a stored procedure, say something like this:

[StoredProcedure(Name = "GetUserSettings")]
public StoredProcedureResult
GetGetUserSettings([Parameter(Name = "City", DBType = "NVarChar(30)")] string v_userName,
[Parameter(Name = "City", DBType = "NVarChar(30)")] string v_password,
[Parameter(Name = "City", DBType = "NVarChar(30)")] string v_company,
[Parameter(Name = "City", DBType = "NVarChar(30)")] string v_userIP,
[Parameter(Name = "City", DBType = "NVarChar(30)")] string v_appName)
{
return this.ExecuteStoredProcedure
(((MethodInfo)(MethodInfo.GetCurrentMethod())), city);
}

And have this stored procedure definition be part of the DataContext class. Is this correct? Is there any way to do it?

Thanks,
Joe

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 10 Dec 2008 11:57

Unfortunately, you are right. There is no way to use stored procedures with LINQ to PostgreSQL now.

Post Reply