Hi,
Currently I need to call stored procedure with two parameter(number and varchar) from oracle database using linq in silverlight. Can you please suggest some sample or steps.
Thanks,
Rajeev
Calling Stored Procedure from Silverlight using Linq...
-
- Posts: 14
- Joined: Mon 07 Feb 2011 09:02
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
At the moment, LinqConnect does not support Silverlight. We plan to implement such support, but cannot provide any timeframe for this. Also, you can vote for this feature at our UserVoice:
http://devart.uservoice.com/forums/80267-linqconnect
As an alternative, you can work with Entity Framework models in Silverlight applications. For example, you can use the approach described in the following walkthrough:
http://blogs.microsoft.co.il/blogs/burs ... ght-3.aspx
Feel free to contact us if you encounter any problems with this.
http://devart.uservoice.com/forums/80267-linqconnect
As an alternative, you can work with Entity Framework models in Silverlight applications. For example, you can use the approach described in the following walkthrough:
http://blogs.microsoft.co.il/blogs/burs ... ght-3.aspx
Feel free to contact us if you encounter any problems with this.
-
- Posts: 14
- Joined: Mon 07 Feb 2011 09:02
Calling Stored Procedure from Silverlight using Linq...
Thanks for the response.
Currently we are using dotConnect for Oracle and we are able to generate Entity Framework from oracle database with Tables, View and stored procedure as functions.
We are able to query from table and View from silverlight but don't know about stored procedure in silverlight.
Now we want to call the stored procedure which I have updated below
Please assist us.
Thanks,
Rajeev
Currently we are using dotConnect for Oracle and we are able to generate Entity Framework from oracle database with Tables, View and stored procedure as functions.
We are able to query from table and View from silverlight but don't know about stored procedure in silverlight.
Now we want to call the stored procedure which I have updated below
Code: Select all
public ObjectResult> SP_GETLINEUPPHOTOS(Nullable nLINEUPID, global::System.String vBOOKNO)
{
ObjectParameter nLINEUPIDParameter;
if (nLINEUPID.HasValue)
{
nLINEUPIDParameter = new ObjectParameter("NLINEUPID", nLINEUPID);
}
else
{
nLINEUPIDParameter = new ObjectParameter("NLINEUPID", typeof(global::System.Decimal));
}
ObjectParameter vBOOKNOParameter;
if (vBOOKNO != null)
{
vBOOKNOParameter = new ObjectParameter("VBOOKNO", vBOOKNO);
}
else
{
vBOOKNOParameter = new ObjectParameter("VBOOKNO", typeof(global::System.String));
}
return base.ExecuteFunction>("SP_GETLINEUPPHOTOS", nLINEUPIDParameter, vBOOKNOParameter);
}
Thanks,
Rajeev
-
- Posts: 14
- Joined: Mon 07 Feb 2011 09:02
Hi AndreyR,
Apology for the late response.
I have seen the sample and it looks fine.
Currently, Our application access oracle database using ADO.NET Entity data model which is non-RIA service and your sample use RIA service.
It would be great help if you can provide a sample with ADO.NET Entity Data Model and WCF Service.
Awaiting for your reply.
Thanks,
Rajeev
Apology for the late response.
I have seen the sample and it looks fine.
Currently, Our application access oracle database using ADO.NET Entity data model which is non-RIA service and your sample use RIA service.
It would be great help if you can provide a sample with ADO.NET Entity Data Model and WCF Service.
Awaiting for your reply.
Thanks,
Rajeev
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
We will prepare you a test project in several days.
You can also follow one of standard tutorials, e.g.,
http://msdn.microsoft.com/en-us/library/cc197940.aspx
Please tell us if you encounter any problems with this.
You can also follow one of standard tutorials, e.g.,
http://msdn.microsoft.com/en-us/library/cc197940.aspx
Please tell us if you encounter any problems with this.