DevArt | It provides many utils | iOS library
kandi X-RAY | DevArt Summary
kandi X-RAY | DevArt Summary
DevArt is a develop framework for KOTLIN. It provides many utils and components for build APPs swiftly.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DevArt
DevArt Key Features
DevArt Examples and Code Snippets
Community Discussions
Trending Discussions on DevArt
QUESTION
I am experiencing a non normal memory consumption from my application written in Delphi 10 Seattle. It is a client server fat client type of application using SDAC's Devart as DB component.
I am not aware of specific tools, but I would like to know what causes the memory consumption.
What I observe is the following: as i launch a command the memory used by the exe grows a lot (up to 1 GB, in an app that used to use up to 200MB max) and sometimes this ends in an out of memory
error. The stack trace of the out of memory error is of no use and seems random.
Could anyone please suggest a technique to study memory consumption?
I am currently studying memory leaks with FastMM4 and I managed to remove some, but there are just minor ones (TStringlist
or some small TBitmap
), nothing that justifies 1GB of memory consumption.
Is there a way to say "unit4.pas allocated 100MB of RAM" or any other similarly useful memory usage report?
Thanks a lot.
I feel stuck since I do not know the tools for this task.
...ANSWER
Answered 2022-Feb-23 at 14:07What you need is a good memory/allocation profiler.
I don't know what features are typical or not in such a profiler because I only ever used one, but the one I use allows to get a report at anytime during a run that shows all the allocated memory and where in the application said memory was allocated.
QUESTION
I am developing an open source class library (MySqlBackup.NET) which it can works with 3 optional dependencies that are developed by different developers, but they all have the same namespace type MySqlCommand
.
- MySQL.DATA.dll
- Devart.Data.MySql.dll
- MySqlConnector.dll
Each time I released a nuget package, I need to compile 3 times separately with it's specific dependencies.
Is there a way to compile the library that works without needing to bind (locking) the specific target dependency? That it will work if any of the dependant dll that contains the required namespace type exists.
And also, each time when the dependencies had released a new version, I need to recompile again just to match the version number of the dependencies and re-submit new nuget package, but there is actually no code change within my class library.
How to compile the class library that will ignore the version number of the dependencies?
...ANSWER
Answered 2021-Oct-05 at 10:55Short answer: no, not in the way you want; the type's identity (in IL) is defined by the assembly and the full type name - you can't just say "this type name, but I don't care where from"
You could perhaps just depend on DbCommand
(or more generally: the APIs in System.Data.Common
), rather than any provider-specific types; this is usually enough for most ADO.NET work unless you desperately need to touch provider-specific APIs, in which case: you might need to use some form of runtime reflection code (as an example: Dapper uses optimized reflection to tweak Oracle's BindByName
behaviour, when it finds it). Note that ADO.NET also has a provider factory model, although it isn't much fun to work with.
Another approach is to have a core library that contains the common/shared logic, and 3 satellite libraries that all depend on that core library, and contain the provider-specific facets (obviously each satellite library would also take a package reference against one of the provider-specific APIs). Due to how transient dependencies work, your average consumer would then just need a single package-reference to their appropriate provider-specific package, for example MySqlBackup.Devart
(naming is hard!).
QUESTION
The error is the following:
InvalidOperationException: the cast to value type 'System.Int32' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type.
at System.Data.Entity.Core.Common.Internal.Materialization.ErrorHandlingValueReader
1.GetValue(DbDataReader reader, Int32 ordinal) +177 at lambda_method(Closure , Shaper ) +1146 at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator
1.ReadNextElement(Shaper shaper) +384
at System.Data.Entity.Core.Common.Internal.Materialization.SimpleEnumerator.MoveNext() +88
at System.Linq.Buffer1..ctor(IEnumerable
1 source) +284
at System.Linq.Enumerable.ToArray(IEnumerable`1 source) +90
at Medici.MediciService.GetMedici(GetMediciQuery param)
The query example:
...ANSWER
Answered 2021-Aug-19 at 22:07I think you may be out of luck that the code was built against an assumption about a peculiarity that the Oracle Provider had around projecting null-able references that other providers like SQL Server do not share.
If you do end up accepting that you need to revisit your projections there are two options I know of. Either explicitly add the #null checks before projecting, or consider leveraging Automapper to handle the Projections /w ProjectTo
as this does handle #null references, plus has the added bonus of making your Linq expressions a lot more compact. This would involve defining the mapping rules for Automapper to use. Depending on how consistent and predictable your entity vs. DTO naming conventions are, Automapper can resolve quite a bit by convention.
QUESTION
We have several microservices built on top of aspnetcore and entity framework and using the MySQL EntityFramework connector from Devart. I've noticed that if the first query that any of our applications attempts fails due to the data store being inaccessible, then the failure seems to be cached, and when the DB is finally alive, the exception is still returned to the user code.
As part of the diagnosis of this problem I tried disabling the database when the application is running and in this situation the application appears to be able to recover once the DB is available again, so I suspect the problem is related to a connection that may be cached during model initialisation.
I've also tried disabling the service provider caching and this also lets the application recover but at the cost of having to initialise the service provider each time, so this can't be used in our application but lends weight to the idea that the error is related to some form of caching.
Has anyone else had/seen this problem before? What was your solution?
Here is a stack trace for context:
...ANSWER
Answered 2021-Apr-15 at 17:09Please try turning off pooling ("Pooling=false;" in the connection string) or clear the pool explicitly with MySqlConnection.ClearAllPools(true).
For more information, refer to:
QUESTION
I have two schemas Bob and Bill. I want to scaffold with schema Bob all tables and with schema Bill only View_Otf table.
If I use the following code, I get an empty DbContext:
...ANSWER
Answered 2021-Jun-03 at 09:37You will have to list all tables individually. Or you can try EF Core Power Tools, which has a UI for it.
QUESTION
I'm using the library Devart.Data.PostgreSql (https://www.nuget.org/packages/Devart.Data.PostgreSql/) to interact with PostgreSQL from a C# application, but I run into problems when I try to connect to a PostgreSQL instance hosted in Azure that enforces TLS 1.2. From what I understand there is a problem with ciphers not being able to match during the handshake as I end up with this exception:
...ANSWER
Answered 2021-May-25 at 08:02Full support of TLS 1.2 in SSL connections for .NET Standard (.NET Core) Projects was implemented in dotConnect for PostgreSQL v7.20.1860 01-Apr-21.
With .NET Framework projects, use assemblies compiled for .NET Framework 4.7:
- "C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\NET4\Devart.Data.dll"
- "C:\Program Files (x86)\Devart\dotConnect\PostgreSQL\NET4\Devart.Data.PostgreSql.dll"
Please select the "Do not install assemblies in the GAC" option in Setup Wizard. Otherwise, the runtime will use assemblies compiled for .NET Framework 2.0 from GAC.
QUESTION
I'm following this guide to convert columns to rows in T-SQL: https://blog.devart.com/is-unpivot-the-best-way-for-converting-columns-into-rows.html
However, I need to convert only if one of the columns is set to 1.
Table:
...ANSWER
Answered 2021-May-19 at 17:27You can use cross apply
and filtering:
QUESTION
The Update-Database -script command generates an incomplete sql.
The weird behavior is that the missing output from sql is dumped in the Package Manager console.
Example migration:
...ANSWER
Answered 2021-May-19 at 15:48Thank you for your report. We have reproduced the issue and will notify you when it is fixed.
QUESTION
I just got into a Asp.NET web-project and I'm trying to setup the application. When I run the application and call an endpoint on localhost I get the error "InvalidOperationException: Unknown connection string parameter 'SSLMode'".
Here is the full stacktrace:
...ANSWER
Answered 2021-May-17 at 11:41The problem was, even though i had the license info, devart was not installed on my machine... Closing
QUESTION
I'm using Devart with Oracle database 10g and Entity Framework Core 5 and I'm trying to create the models from database with Scaffold-DbContext:
...ANSWER
Answered 2021-May-06 at 08:30Devart.Data.Oracle.EFCore is the name of the NuGet package.
Devart.Data.Oracle.Entity.EFCore is the name of the assembly.
Refer to https://www.devart.com/dotconnect/oracle/docs/?EFCore-Database-First-NET-Core.html.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DevArt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page