Delphi Programming Projects by William Duarte
Author:William Duarte [William Duarte]
Language: eng
Format: epub
Tags: COM051230 - COMPUTERS / Software Development and Engineering / General, COM051000 - COMPUTERS / Programming / General, COM048000 - COMPUTERS / Systems Architecture / Distributed Systems and Computing
Publisher: Packt Publishing
Published: 2019-05-02T12:08:28+00:00
procedure initialize;
begin
If Assigned( DM_RepositorySQLServer ) then
exit;
Application.CreateForm(TDM_RepositorySQLServer, DM_RepositorySQLServer);
end;
Last, but not least, we need to encode the OnCreate event so that the initialize procedure makes sense:
procedure TDM_RepositorySQLServer.DataModuleCreate(Sender: TObject);
begin
Try
FDConnSQLServer.Connected := False;
FDConnSQLServer.Connected := True;
Except
On E : Exception do
ShowMessage('Error Connect SQL Server : ' + E.Message)
End;
end;
It's important to remember that in this step, we can set up the parameters of the database at runtime. In this example, we are only disconnecting and connecting to the current parameters, imputed in step 4 of this section.
In the DataModule class declaration, we will implement our repository interface. This will ensure that DataModule implements the interface methods shown in the next step.
Include the iRepositories interface in the DataModule:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
2021 Beginners Guide to Python Programming Language: A Crash Course to Mastering Python in One Hour by Elmer Gary & Elmer Gary(1830)
API Testing and Development with Postman by Dave Westerveld(1539)
Learning C# by Developing Games with Unity 2020 by Harrison Ferrone(1503)
Machine Learning for Algorithmic Trading by Stefan Jansen(1469)
Software Architecture for Busy Developers by Stéphane Eyskens(1460)
Hands-On ROS for Robotics Programming by Bernardo Ronquillo Japón(1439)
Delphi GUI Programming with FireMonkey by Andrea Magni(1300)
Cloud Native with Kubernetes by Alexander Raul(1269)
Game Development Projects with Unreal Engine by Hammad Fozi & Goncalo Marques & David Pereira & Devin Sherry(1253)
Automate It with Zapier by Kelly Goss(1222)
Software Architecture Patterns for Serverless Systems by John Gilbert(1217)
Datadog Cloud Monitoring Quick Start Guide by Thomas Kurian Theakanath(1194)
Practical System Programming for Rust Developers by Prabhu Eshwarla(1192)
Practical Node-RED Programming by Taiji Hagino(1181)
Mastering React Test-Driven Development by Daniel Irvine(1164)
Delphi Programming Projects by William Duarte(1157)
Learn Spring for Android Application Development by S. M. Mohi Us Sunnat(1123)
Ghidra Software Reverse Engineering for Beginners by A. P. David(1123)
Developing Multi-Platform Apps with Visual Studio Code by Ovais Mehboob Ahmed Khan & Khusro Habib & Chris Dias(1118)