You are not logged in.
Pages: 1
Hello
I have created the ORM.
I have also established the connection to the SQL Server database.
I have created the database on the sql server(manully).
However, the CreateMissingTables() command does not create the tables.
TMainRestServer = class(TRestServerFullMemory)
private
FConnectionPool: TSqlDBFireDacConnectionProperties;
Model: TOrmModel;
and
aServer := TMainRestServer.Create;
aServer.Model:=TOrmModel.Create([TormUnits]);
VirtualTableExternalRegister(aServer.Model,[TormUnits],aserver.FConnectionPool);
HttpServer := TRestHttpServer.Create('8080', [aServer], '+', HTTP_DEFAULT_MODE,4 );
HttpServer.AccessControlAllowOrigin := '*';
aServer.Server.CreateMissingTables();
Which part did I do wrong?
Offline
Pages: 1