This is a migrated thread and some comments may be shown as answers.
Immediate Select after Insert
1 Answer 10 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brent
Top achievements
Rank 2
Brent asked on 26 Oct 2012, 03:40 PM
Hello,
  I am noticing that immediately after I create a new object and call my contexts .add sub.  A select Query is automatically issued by the context for those objects that have relationships defined.  I assume this is to populate all of those relationships correctly.  However it can lead to several call backs that are not needed and costly over a WAN environment.  Is there a specific way for me to insert objects without this from happening?

Brent 

1 Answer, 1 is accepted

Sort by
0
Thomas
Telerik team
answered on 29 Oct 2012, 03:15 PM
I think this could come from the handling of synchronized or managed fields, where we try to check if row exists in the database.
Would it be possible to send us your .rlinq file so that we can figure out this a bit more? If this comes from shared fields, then this might be an issue coming from a missing/wrong null indicator. If this is coming from managed collections, the issue might be a different one.

Kind regards,
Thomas
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
Tags
LINQ (LINQ specific questions)
Asked by
Brent
Top achievements
Rank 2
Answers by
Thomas
Telerik team
Share this question
or