Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Jan 13, 2025
1 parent a719bc0 commit 3f60e56
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 228 deletions.
2 changes: 1 addition & 1 deletion samples/sessions_on_database/DBSessionSample.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ uses
IdHTTPWebBrokerBridge,
WebModuleUnit1 in 'WebModuleUnit1.pas' {WebModule1: TWebModule},
AppControllerU in 'AppControllerU.pas',
MVCFramework.Session.ActiveRecord in '..\..\sources\MVCFramework.Session.ActiveRecord.pas';
MVCFramework.Session.Database in '..\..\sources\MVCFramework.Session.Database.pas';

{$R *.res}

Expand Down
2 changes: 1 addition & 1 deletion samples/sessions_on_database/DBSessionSample.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<DesignClass>TWebModule</DesignClass>
</DCCReference>
<DCCReference Include="AppControllerU.pas"/>
<DCCReference Include="..\..\sources\MVCFramework.Session.ActiveRecord.pas"/>
<DCCReference Include="..\..\sources\MVCFramework.Session.Database.pas"/>
<BuildConfiguration Include="Base">
<Key>Base</Key>
</BuildConfiguration>
Expand Down
1 change: 1 addition & 0 deletions sources/MVCFramework.ActiveRecord.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,7 @@ function TMVCConnectionsRepository.GetByName(const aName: string): TFDConnection
if not fConnectionsDict.TryGetValue(lKeyName, lConnHolder) then
raise Exception.CreateFmt('Unknown connection %s', [aName]);
Result := lConnHolder.Connection;
Result.Open;
finally
fMREW.EndRead;
end;
Expand Down
221 changes: 0 additions & 221 deletions sources/MVCFramework.Session.ActiveRecord.pas

This file was deleted.

Loading

0 comments on commit 3f60e56

Please sign in to comment.