[TDBContext] AutoSync is not supported in SQLite

[TDBContext] AutoSync is not supported in SQLite

Postby kimhj » Wed 12 Oct 2016 10:36

Hello~.

I am using evaluation version of EntityDAC and LiteDAC with Sqlite3 DB file.
Linq based query works very well.. but below code makes an error message like the subject.
'[TDBContext] AutoSync is not supported in SQLite'.


procedure TForm1.B_ORMClick(Sender: TObject);
var
Context: TEntityContext;
W: TTWorkList;
WL: IEntityEnumerable<TTWorkList>;

begin
with DataModule1 do
begin
OrionContext.Connection.Provider := LiteDACDataProvider;
//WL := OrionContext.GetEntities<TTWorkList>;
W := OrionContext.CreateEntity<TTWorkList>;
W.PatientName := 'TOMM';
W.SEX := 'M';
W.Attach(OrionContext);
W.Save; // <======== This code makes the error.
end;
end;

Could you tell me how to fix error?

Thanks in advance
-K-
kimhj
 
Posts: 1
Joined: Wed 12 Oct 2016 10:25

Re: [TDBContext] AutoSync is not supported in SQLite

Postby AlexP » Mon 17 Oct 2016 10:29

Hello,

Please provide the complete project including the model file to support*devart*com, in order for us to be able to reproduce the problem.
AlexP
Devart Team
 
Posts: 5525
Joined: Tue 10 Aug 2010 11:35


Return to EntityDAC