[TDBContext] AutoSync is not supported in SQLite

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
kimhj
Posts: 1
Joined: Wed 12 Oct 2016 10:25

[TDBContext] AutoSync is not supported in SQLite

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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: [TDBContext] AutoSync is not supported in SQLite

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

Post Reply