*push*
Due to the latest update I hoped you got this already, sadly you didnt. How long will you need to add?
Cause im starting a new project right now.
Thanks
Search found 26 matches
- Mon 04 Jul 2022 13:44
- Forum: LinqConnect (LINQ to SQL support)
- Topic: Automatic Property Set for GUID
- Replies: 4
- Views: 22252
- Fri 24 Jun 2022 14:53
- Forum: LinqConnect (LINQ to SQL support)
- Topic: MariaDB (Mysql) issue with encoding german characters
- Replies: 1
- Views: 16958
MariaDB (Mysql) issue with encoding german characters
Hey!
I'm having some trouble accessing a wordpress database posts inside my blazor application.
When loading the Post_content im getting it but with a wrong encoding of german characters.
Looks like this:
Charset is utf8mb4 and collation is utf8mb4_0900_ai_ci
Not sure if I have to change the encoding somewhere.
Thank you
Warm regards
Florian Dahn
I'm having some trouble accessing a wordpress database posts inside my blazor application.
When loading the Post_content im getting it but with a wrong encoding of german characters.
Looks like this:
The character id is 65533 .Zur Einhaltung der Klimaziele m�ssen bis 2050 mehrere Millionen W�rmepumpen installiert werden!
Charset is utf8mb4 and collation is utf8mb4_0900_ai_ci
Not sure if I have to change the encoding somewhere.
Thank you
Warm regards
Florian Dahn
- Fri 06 May 2022 15:53
- Forum: LinqConnect (LINQ to SQL support)
- Topic: IntegrityCheck/Update methods
- Replies: 3
- Views: 12244
Re: IntegrityCheck/Update methods
Ok, thanks!Shalex wrote: ↑Tue 03 May 2022 16:33 There is no such functionality in the DataContext class but you can use Entity Developer for this purpose either via design time using Update To Database Wizard (copy update script instead of applying it) or via the console version of the tool calling "ed Get-Update-Script" (https://www.devart.com/entitydeveloper/ ... r_app.html).
Issue here is right now, it seems that only for the Create method I can specify a ConnectionString.
I'm having a server with multiple versions (and names) of the database, would be great to easily change which database to check and generate the update script.
Thank you
- Fri 06 May 2022 15:36
- Forum: LinqConnect (LINQ to SQL support)
- Topic: Automatic Property Set for GUID
- Replies: 4
- Views: 22252
- Fri 29 Apr 2022 12:23
- Forum: LinqConnect (LINQ to SQL support)
- Topic: CreateDatabase does not work with ForeignKeys
- Replies: 7
- Views: 14011
- Mon 18 Apr 2022 14:52
- Forum: LinqConnect (LINQ to SQL support)
- Topic: Automatic Property Set for GUID
- Replies: 4
- Views: 22252
Automatic Property Set for GUID
Hey,
when using an int or bigint type in an sql database column and importing into a model the column properties will be set for "Auto Generated Value" to true and for "Auto-Sync" to "OnInsert".
Would be great when choosing uniqueidentifier (GUID) in an sql database and importing into a model both properties are also set when the default value of the column is "newid()".
Maybe you got this already, but I havent found it yet.
Thank you!
Warm regards
Florian Dahn
when using an int or bigint type in an sql database column and importing into a model the column properties will be set for "Auto Generated Value" to true and for "Auto-Sync" to "OnInsert".
Would be great when choosing uniqueidentifier (GUID) in an sql database and importing into a model both properties are also set when the default value of the column is "newid()".
Maybe you got this already, but I havent found it yet.
Thank you!
Warm regards
Florian Dahn
- Tue 12 Apr 2022 16:20
- Forum: LinqConnect (LINQ to SQL support)
- Topic: CreateDatabase does not work with ForeignKeys
- Replies: 7
- Views: 14011
- Tue 15 Mar 2022 17:52
- Forum: LinqConnect (LINQ to SQL support)
- Topic: IntegrityCheck/Update methods
- Replies: 3
- Views: 12244
IntegrityCheck/Update methods
Hey!
I have seen that you got a CreateDatabase/DeleteDatabase method in the DataBaseContext.
Is there any way to compare the database model (lqml) to the database and get a list of differences ?
Missing tables, column changes, etc?
And optional an update method, to update the database where you can pass the result of the method from above ?
Thank you!
I have seen that you got a CreateDatabase/DeleteDatabase method in the DataBaseContext.
Is there any way to compare the database model (lqml) to the database and get a list of differences ?
Missing tables, column changes, etc?
And optional an update method, to update the database where you can pass the result of the method from above ?
Thank you!
- Mon 14 Mar 2022 21:30
- Forum: LinqConnect (LINQ to SQL support)
- Topic: CreateDatabase does not work with ForeignKeys
- Replies: 7
- Views: 14011
Re: CreateDatabase does not work with ForeignKeys
Hey!
Sorry for the delay.
I had now prepared a test project, which raises the same exception.
I'll sent it to you by the provided link.
Thanks and hope to hear back from you soon!
Warm regards
Florian Dahn
- Tue 08 Mar 2022 21:30
- Forum: LinqConnect (LINQ to SQL support)
- Topic: CreateDatabase does not work with ForeignKeys
- Replies: 7
- Views: 14011
- Fri 04 Mar 2022 14:32
- Forum: LinqConnect (LINQ to SQL support)
- Topic: CreateDatabase does not work with ForeignKeys
- Replies: 7
- Views: 14011
CreateDatabase does not work with ForeignKeys
Hey!
I tried to build a database installer and used the CreateDatabase method of the DataContext.
But im receiving an error that a ForeignKey can not be installed due to missing table.
So it seems it tries to install tables and keys at the same time, which is not got as it looks like.
Would it be possible to install the tables first and then the keys ?
When using IgnoreErrors=true it install all tables which does not have a foreign key.
Thanks as always!
Warm regards
Florian Dahn
I tried to build a database installer and used the CreateDatabase method of the DataContext.
But im receiving an error that a ForeignKey can not be installed due to missing table.
So it seems it tries to install tables and keys at the same time, which is not got as it looks like.
Would it be possible to install the tables first and then the keys ?
When using IgnoreErrors=true it install all tables which does not have a foreign key.
Thanks as always!
Warm regards
Florian Dahn
- Fri 22 Oct 2021 16:16
- Forum: LinqConnect (LINQ to SQL support)
- Topic: Error on opening Designer (lqml)
- Replies: 5
- Views: 17174
Re: Error on opening Designer (lqml)
I downloaded and installed that Windows 10 Update KB5006670 again and can confirm that this issue is now fixed.
Thank you guys!
Warm regards
Florian Dahn
Thank you guys!
Warm regards
Florian Dahn
- Wed 13 Oct 2021 21:07
- Forum: LinqConnect (LINQ to SQL support)
- Topic: Error on opening Designer (lqml)
- Replies: 5
- Views: 17174
Re: Error on opening Designer (lqml)
UPDATE: I uninstalled the first Windows 10 Update KB5006670 and Now everything (the Designer in VS2019 and the extern Entity Designer) is working again as expected. So take care and take a look what it has to do with this update.
- Wed 13 Oct 2021 20:49
- Forum: LinqConnect (LINQ to SQL support)
- Topic: Error on opening Designer (lqml)
- Replies: 5
- Views: 17174
Error on opening Designer (lqml)
Hey community,
today, i'm comming into some curious issue. I used the Designer inside of VS 2019 and it worked just fine.
Later the day I updated VS2019 to the current version of 16.11.5 (Before I was on 16.11.4)
Since then, the Designer will not open anymore. Sometimes it just opened the text/xml editor.
On the first try when using "Open with", just to be sure, im getting the message: (roughly translated) An element with the same key has been added already.
Nothing happens. It just openes that same "Open with" dialog. Second try doesn't do anything.
I updated the LinqtoSql Tools Pro to latest version and it doesn't helped. I want to just mention, that during installation it will remove the old version, so another unistall will not be necessary, hopefully.
Thank you!
Warm regards
Florian dahn
PS: I started the Entity Developer UI and directly after starting it crashed. I reported it by mail. Maybe it helps.
PS2: I also installed 2 windows 10 updates today (KB5006670 and KB5005539), I will uninstall both now and let you know.
today, i'm comming into some curious issue. I used the Designer inside of VS 2019 and it worked just fine.
Later the day I updated VS2019 to the current version of 16.11.5 (Before I was on 16.11.4)
Since then, the Designer will not open anymore. Sometimes it just opened the text/xml editor.
On the first try when using "Open with", just to be sure, im getting the message: (roughly translated) An element with the same key has been added already.
Nothing happens. It just openes that same "Open with" dialog. Second try doesn't do anything.
I updated the LinqtoSql Tools Pro to latest version and it doesn't helped. I want to just mention, that during installation it will remove the old version, so another unistall will not be necessary, hopefully.
Thank you!
Warm regards
Florian dahn
PS: I started the Entity Developer UI and directly after starting it crashed. I reported it by mail. Maybe it helps.
PS2: I also installed 2 windows 10 updates today (KB5006670 and KB5005539), I will uninstall both now and let you know.
- Thu 08 Jul 2021 12:48
- Forum: LinqConnect (LINQ to SQL support)
- Topic: Batch processing issue
- Replies: 4
- Views: 16443
Re: Batch processing issue
For everbody else having the same "issue".
I build some generic extension methods which will help here "automatically".
I build some generic extension methods which will help here "automatically".
Code: Select all
public static List<T> WhereOrInserted<T>(this Table<T> table, Expression<Func<T, bool>> predicate)
where T : class
{
var result = table.Where(predicate).ToList();
if (result != null && result.Count != 0)
return result;
result = table.Context.GetChangeSet().Inserts.Where(a => a.GetType() == typeof(T))
.Select(a => a as T)
.ToList();
return result;
}
public static T FirstOrInserted<T>(this Table<T> table, Expression<Func<T, bool>> predicate)
where T : class
{
var result = table.First(predicate);
if (result != null)
return result;
result = table.Context.GetChangeSet().Inserts.Where(a => a.GetType() == typeof(T))
.Select(a => a as T)
.First();
return result;
}
public static T FirstOrDefaultOrInserted<T>(this Table<T> table, Expression<Func<T, bool>> predicate)
where T : class
{
var result = table.FirstOrDefault(predicate);
if (result != null)
return result;
result = table.Context.GetChangeSet().Inserts.Where(a => a.GetType() == typeof(T))
.Select(a => a as T)
.FirstOrDefault();
return result;
}