How to get specified Entity from TMappedCollection in EntityDAC
EntityDAC doesn't have a method similar to TDataSet.Locate.
You can implement a similar behavior by retrieving every item from a collection, as shown in the EntityDAC demo ("Get Entities by Collections"). Another way is to find the needed element using a LINQ expression.
Related Articles
TMyConnection in EntityDac
Work with the TMyConnection class is done by calling EntityDAC.DataProvider.MyDAC. This provider does not provide the ability to use the TMyConnection features you are interested in. A possible solution is to create your own provider. Implementation ...
How to Connect to MySQL Server
In the second article of the series uncovering how to get started with MySQL, we talk about the ways of connecting to MySQL Server. You can connect to MySQL Server using MySQL Client, dbForge Studio for MySQL, and MySQL Workbench. In this article, we ...
Schttpwebrequest response
In order to get data returned by the server, you need to handle HttpException. To do this, please try doing the following: try Response := ScHttpWebRequest1.GetResponse; except on E:HttpException do showmessage(E.ServerMessage); end; In this case, ...
Timestamps not in expected timezone
If you get a timestamp that does not correspond yours in dbForge Studio for Oracle, please follow several steps below to fix it: 1. Select 'Tools -> Options...' from the main menu. 2. Navigate to the 'Data Editor -> Formatting' section. 3. Select ...
TScHttpWebResponse (accented characters)
Method ScHttpWebRequest1.GetResponse.ReadAsString expects response to have a UTF-8 encoding, and decodes them as UTF-8. You may get response content "as-is" by using -ScHttpWebRequest1.GetResponse.ReadAsBytes ...