Self-Tracking entities support

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Idsa
Posts: 22
Joined: Mon 30 Mar 2009 16:00

Self-Tracking entities support

Post by Idsa » Sun 05 Sep 2010 08:07

Does dotConnect for MySQL support Self-Tracking entities?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by 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.

Idsa
Posts: 22
Joined: Mon 30 Mar 2009 16:00

Post by 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.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 07 Sep 2010 13:15

There should be no problems with this approach.

Post Reply