This is a migrated thread and some comments may be shown as answers.

FETCHING PLANS

11 Answers 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
prabhu
Top achievements
Rank 1
prabhu asked on 16 Apr 2009, 05:22 PM
hi,

how to create and use Fetch plans in telerik Openaccess ORM

any body can help me???

11 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 16 Apr 2009, 05:29 PM
Hello prabhu,
I believe that this topic will provide useful information regarding the fetch plans in OpenAccess ORM.
Regards,
PetarP
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
prabhu
Top achievements
Rank 1
answered on 16 Apr 2009, 05:49 PM
Thanks for u reply

i need Telerik openaccess ORM Fetch plans video examples using windows application.

im waiting for u reply


byeeee



0
PetarP
Telerik team
answered on 17 Apr 2009, 05:20 AM
Hello prabhu,
unfortunately such videos are not yet available. As for now you can refer to the help topic I posted in my previous replay or to our QSF examples that come with installing the Telerik OpenAccess ORM product. Note that this examples are available in both C# and VB.
Regards,
PetarP
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
vignesh
Top achievements
Rank 1
answered on 17 Apr 2009, 05:29 AM
hi peter,

How to combined more than one SQL query in run time using Telerik ORM

is it any possible way .......

thaks
regards,
 vignesh
0
Zoran
Telerik team
answered on 17 Apr 2009, 06:07 AM
Hi vignesh,

I am not very sure if I got that one right. If you execute a complex OQL or Linq query it generates a SQL query which looks like few queries merged. It is also possible to execute more then one query into one transaction and than have multiple result sets.

Sincerely yours,
Zoran
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
vignesh
Top achievements
Rank 1
answered on 17 Apr 2009, 06:19 AM
hi zoran,

can u give some examples

for this one "more then one query into one transaction"

And also one more doubt ,

how to fetched this queries in ORM????

thanks for u reply ,
Regards,
vignesh

0
Peter
Top achievements
Rank 1
answered on 17 Apr 2009, 09:01 AM
Hi,
Please check out also the relevant demos.
-Peter
0
Zoran
Telerik team
answered on 17 Apr 2009, 11:00 AM
Hi vignesh,

Here is a sample code where we execute multiple queries into one transaction:

        IObjectScope scope = Database.Get("DatabaseConnection1").GetObjectScope(); 
        { 
            scope.Transaction.Begin(); 
            { 
                IQuery query1 = scope.GetOqlQuery("SELECT ord FROM OrderExtent AS ord"); 
                IQueryResult queryResult1 = query1.Execute(); 
 
                IQuery query2 = scope.GetOqlQuery("SELECT cust FROM CustomerExtent AS cust"); 
                IQueryResult queryResult2 = query2.Execute(); 
 
                for (int i = 0; i < 10; i++) 
                { 
                    Order o = (Order)queryResult1[i]; 
                    Customer c = (Customer)queryResult2[i]; 
                    o.Customer = c; 
                } 
                Customer newCustomer = new Customer(); 
                scope.Add(newCustomer); 
                scope.Transaction.Commit(); 
            } 
In the code above we first execute two different SELECT queries in OQL which generate two different SQL queries for extracting the Orders and Customers from the database. After that we then edit some of the returned results in the "for" loop, add an additional record and call Transaction.Commit(). This further generates multiple UPDATE queries for all the edited "Order" objects(which we edited in the loop) and also an INSERT query for the newly created "Customer" instance.


Best wishes,
Zoran
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
vignesh
Top achievements
Rank 1
answered on 17 Apr 2009, 03:29 PM
hi Zoran ,

Thanks  for ur reply...

it wil be definetly useful for me....

i have another doubt

i need insert and update records by using Stored Procedure in  Telerik Open access ORM

is there any other easy way ......

thanks ,
regards,
vignesh


0
Peter Brunner
Telerik team
answered on 20 Apr 2009, 09:25 AM
Hi Vignesh,

Thank you for contacting us again.

Please always review the appropriate information available online in our documentation, demos, knowledge base and code library for general information and ask more specific questions here.

Even you might not find something to any related topic in any of these resource areas, it is worth checking, because these resources are being expanded continuously.

A good entry point for Stored Procedure is "Using Stored Procedures" or more directly  "Update Data Using a Stored Procedure".

Please don't hesitate to contact us again for further questions.

Kind regards,
Peter Brunner
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
kottu
Top achievements
Rank 1
answered on 21 Apr 2009, 03:52 AM
Hi Peter ,

Thanks for u r reply.....

I got it man........

take care


Regards ,
vignesh
Tags
General Discussions
Asked by
prabhu
Top achievements
Rank 1
Answers by
PetarP
Telerik team
prabhu
Top achievements
Rank 1
vignesh
Top achievements
Rank 1
Zoran
Telerik team
Peter
Top achievements
Rank 1
Peter Brunner
Telerik team
kottu
Top achievements
Rank 1
Share this question
or