Closed surfmuggle closed 2 months ago
Hello. I'm trying to replicate the issue. Can you provide me with the SQL to create the table a
? The error CS7103
typically means that the name of property or member exceeds the maximum length allowed. You mentioned when you run:
SELECT type, name, tbl_name, rootpage, sql FROM sqlite_master;`, the SQL for table `a`
is:
CREATE TABLE "a"(
"Model;Chassis no. ;Chassis no. 17-digits;SomeDate;Invoice_No;Invoice date;Support;Anfrage 1
a;b;c;d;e;f;g;h;
a;b;c;d;e;f;g;h;
a;b;c;d;e;f;g;h;
...
;;;;;;;
;;;;;; 241.223;
;;;;;;;
...
;;;;;;;
;;;;;;;
;;;;;;;
" TEXT)
If that's true, then it seems you somehow have that huge string as a column name. In that case, when EF Core scaffolds your database it will generate a property name that is very long, thus giving you the CS7013
error.
The Create statement is similar to the one above. But after rereading this i would close or even delete this issue since the underlying cause is that the CREATE TABLE statement is incorrect. I do not remember how exactly this table was created - probably while attempting to import a csv file. But the csv file did not match rfc4180 but used a ;
as a separator. My assumption is that the sqlite cli command to change the separator .separator ";"
did not work as expected.
It may be better to delete this issue so that others do not stumble over this none netpad issue.
Thank you for the update @surfmuggle!
I just discovered and started to use NetPad. I tried to create a connection string but got the error
Steps taken
Problem
Expected
Possible cause of the error
Running this
returns
The sql looks like this but with about 5000 rows
Running
SELECT * FROM a
returns 0 rows.NetPad Screenshot
My NetPad 0.7 looks like this![NetPad_error](https://github.com/tareqimbasher/NetPad/assets/1271555/36500018-b655-4ee2-ac12-97735e4a2303)