Recent

Author Topic: ORM in Lazarus and FPC  (Read 3507 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 10444
Re: ORM in Lazarus and FPC
« Reply #15 on: December 18, 2019, 10:23:25 am »
You can also run fpc -iV to check what version FPC reports (it should be 3.3.1).
Well, you also would need the revision, since trunk is a moving target. All wiki examples compile, but there are already more features in place. As you know... :-X
(That's the reason I always compile my trunk with the revision built-in.)
« Last Edit: December 18, 2019, 10:26:11 am by Thaddy »
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

StraightFree

  • New Member
  • *
  • Posts: 28
Re: ORM in Lazarus and FPC
« Reply #16 on: December 19, 2019, 01:30:51 pm »
PascalDragon and Thaddy,

Thanks for your reply.


I am using the below version of FPC and lazarus.

PascalDragon, I am using FPCUPdeluxe to install FPC and Lazarus. The trunk version installs without problems, but there is an error trying to compile the example of this link (https://wiki.freepascal.org/Custom_Attributes#Complete_example). The error that returns is as follows:

Code: Pascal  [Select][+][-]
  1. "project1.lpr (19.31) Error: Identifier not found" TCustomAttribute ""

When attempting to install the trunkgit version as directed by mr-highball, the installation is not completed. I posted an issue with the error returned in installing this version at this link:

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/167

Have any of you been able to install by FPCUPDeluxe the latest version of FPC and Lazarus and compile the example with TCustomAttribute?

Thank you so much for your help.


StraightFree

  • New Member
  • *
  • Posts: 28
Re: ORM in Lazarus and FPC
« Reply #18 on: December 19, 2019, 01:52:39 pm »
DonAlfredo,

Thanks for your reply.

I will follow the other topic.
I hope you correct this issue soon.

Thanks again for the help!

Pascal

  • Hero Member
  • *****
  • Posts: 911
Re: ORM in Lazarus and FPC
« Reply #19 on: December 19, 2019, 01:59:12 pm »
Have any of you been able to install by FPCUPDeluxe the latest version of FPC and Lazarus and compile the example with TCustomAttribute?

No problems here with handmade checkout and build of FPC trunk (r43677) and Lazarus trunk (r62379).
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

StraightFree

  • New Member
  • *
  • Posts: 28
Re: ORM in Lazarus and FPC
« Reply #20 on: December 19, 2019, 02:05:54 pm »
Pascal,

So in that case, do you manually download and install without FPCUPDeluxe?
After installing FPC and Lazarus, how do you install MORMOT?

Thanks for the answer.

Pascal

  • Hero Member
  • *****
  • Posts: 911
Re: ORM in Lazarus and FPC
« Reply #21 on: December 19, 2019, 02:08:47 pm »
Sorry, i do not use mORMot. My answer just belongs to the quote.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (2004)

StraightFree

  • New Member
  • *
  • Posts: 28
Re: ORM in Lazarus and FPC
« Reply #22 on: December 19, 2019, 02:13:27 pm »
Pascal,

Got it.
I will wait for DonAlfredo's answer in the other topic.

Thanks for tour reply.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1327
Re: ORM in Lazarus and FPC
« Reply #23 on: December 19, 2019, 02:51:12 pm »
The documentation of mORMot has some tips !!

https://synopse.info/files/html/Synopse%20mORMot%20Framework%20SAD%201.18.html#TITL_203

In Setup+, you can add revisions for FPC and Lazarus. These will certainly work !

jus

  • New Member
  • *
  • Posts: 21
Re: ORM in Lazarus and FPC
« Reply #24 on: December 19, 2019, 06:53:56 pm »
@StraightFree: if you need only a persistence framework to separate the business logic you can also give TIOPF a try. It works for Delphi and Lazarus.

There are also youtube videos available:
tiOPF Model GUI Mediator / MVP - Part 1
tiOPF Model GUI Mediator / MVP - Part 2
tiOPF Model GUI Mediator / MVP - Part 3

jus
« Last Edit: December 19, 2019, 07:03:48 pm by jus »

StraightFree

  • New Member
  • *
  • Posts: 28
Re: ORM in Lazarus and FPC
« Reply #25 on: December 20, 2019, 04:40:44 pm »
jus,

In fact, I need to use RTTI and custom attributes to do database creation and maintenance.

I found the solution in madref's post in the following topic (https://forum.lazarus.freepascal.org/index.php/topic,47835.0.html).

I resolved the issue by installing fpcdeluxe version 1.6.4h.

I'll do some tests to verify its operation.

Thank you all for your help.

 

TinyPortal © 2005-2018