In the project we add a new entity into a table using EF 6.0 with the following steps: context create, new entity create, entity added to the entity set, fields update, context SaveChanges. I don't know if it is important or not - one of the field is full text index.
In a very short time we creates another context and sends a sql query with the following method:
context.<Table>.SqlQuery( selectStr, sqlParameters)
In the query there are several where query part using the full text search capability - this is why we creates the sql query as a string and do not use LINQ:
Contains(<FieldName>, @p0)
The problem we face with that the query cannot find the entity inserted recently, but after several try (and some seconds) voilá - the entity can be found in the result set.
What should we do to find the item for the very first time?