Page 1 of 1

Self-Tracking entities support

Posted: Sun 05 Sep 2010 08:07
by Idsa
Does dotConnect for MySQL support Self-Tracking entities?

Posted: Mon 06 Sep 2010 11:26
by AndreyR
The CTP 4 support was discussed here at our forum.
The dummy implementation of the DatabaseExists method will be available in the nearest build.
However, the SetInitializer workaround is still necessary.

Posted: Tue 07 Sep 2010 04:00
by Idsa
I'm primarily interested in the following approach:

Code: Select all

public void Update(Entity entity)
{
   using (var ctx = new RepositoryContext())
   {
       ctx.Entities.ApplyChanges(entity);
       ctx.SaveChanges();
   }
}
Is it supported? I ask because 1. it doesn't work in MySQL official provider 2. I can't test it using your provider as I get "connection lost" exception described in one of the above topics.

Posted: Tue 07 Sep 2010 13:15
by AndreyR
There should be no problems with this approach.