Self-Tracking entities support

Self-Tracking entities support

Postby Idsa » Sun 05 Sep 2010 08:07

Does dotConnect for MySQL support Self-Tracking entities?
Idsa
 
Posts: 22
Joined: Mon 30 Mar 2009 16:00

Postby AndreyR » Mon 06 Sep 2010 11:26

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.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby Idsa » Tue 07 Sep 2010 04:00

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.
Idsa
 
Posts: 22
Joined: Mon 30 Mar 2009 16:00

Postby AndreyR » Tue 07 Sep 2010 13:15

There should be no problems with this approach.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for MySQL