firebird2.5

Entity Framework NullReferenceException calling ToList?

北战南征 提交于 2020-01-14 09:32:06
问题 I'm very new to WPF and the EF, and I'm trying to display some data from a table in a datagrid. I've got the entity model pulled from an existing database and simple operations seem to work (getting row counts, using 'first'). I'm running against Firebird 2.5.0 using the 2.0.5 DDEX provider and 2.5.2 ADO NETProvider. When I try to get the data into the grid or simply into a list, I get a null reference exception. Possibly I just don't understand how to use the entity framework, but the

Firebird db connection string

佐手、 提交于 2020-01-07 03:04:50
问题 When i run the c# code with firebird db as backend it shows.My code is plain and simple then why is it showing such an error?? An unhandled exception of type 'System.BadImageFormatException' occurred in FirebirdSql.Data.FirebirdClient.dll Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) private void button1_Click(object sender, EventArgs e) { string connectionString = "User=SYSDBA;" + "Password=masterkey;" + "Database

Firebird db connection string

纵然是瞬间 提交于 2020-01-07 03:04:40
问题 When i run the c# code with firebird db as backend it shows.My code is plain and simple then why is it showing such an error?? An unhandled exception of type 'System.BadImageFormatException' occurred in FirebirdSql.Data.FirebirdClient.dll Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) private void button1_Click(object sender, EventArgs e) { string connectionString = "User=SYSDBA;" + "Password=masterkey;" + "Database

combine tables with 1 to N relationship into 1 line of record with the last value of the N record

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 13:59:20
问题 I need a modification of my previous post regarding how to combine tables with 1 to many relationship into 1 line of record how to combine tables with 1 to many relationship into 1 line of record now my problem is my record has now 1 to many relationship. What I need to show is the last record only and combine it in a single line tables tbl_equipment and tbl_warranty and here is the desired output here is the code I'm trying to implement SELECT a.equipmentid, a.codename, a.name, a.labelid, a

invalid request BLR at offset 163

人盡茶涼 提交于 2020-01-05 07:55:10
问题 I have the following error in the Firebird Database. version 2.5.2 invalid request BLR at offset 163 function F_ENCODEDATE is not defined module name or entrypoint could not be found Error while parsing procedure GETMONTHSBYYEAR's BLR Until last week everything was functioning correctly. This UDF exists on the disk. How can I debug this problem? Anyone can help me to sort out this problem. PS: What I did so far to fix: Backup / restore - no result. (any structure problem is fixed in my

How to REVOKE ROLE GRANTED BY another user on Firebird 2.5.8?

爱⌒轻易说出口 提交于 2020-01-05 03:47:25
问题 I am working with Firebird 2.5.8, ODS Version 11.2, connecting via Firebird ADO.NET v6.6 (in C# using Visual Studio). I have built a database management tool for configuring our tables, as well as performing some basic Firebird user management operations. The database has different roles (MyRoleX and MyRoleY) defined to give/restrict access. User management operations include granting/revoking these roles to different users. When logged into the tool, the connection uses the RDB$ADMIN ROLE

How to REVOKE ROLE GRANTED BY another user on Firebird 2.5.8?

大兔子大兔子 提交于 2020-01-05 03:47:21
问题 I am working with Firebird 2.5.8, ODS Version 11.2, connecting via Firebird ADO.NET v6.6 (in C# using Visual Studio). I have built a database management tool for configuring our tables, as well as performing some basic Firebird user management operations. The database has different roles (MyRoleX and MyRoleY) defined to give/restrict access. User management operations include granting/revoking these roles to different users. When logged into the tool, the connection uses the RDB$ADMIN ROLE

INSERT SELECT in Firebird

荒凉一梦 提交于 2020-01-04 15:28:26
问题 I'm new to firebird and I have verious issues. I want to insert various lines into a table selected from another table. Here's the code: /*CREATE GENERATOR POS; */ SET GENERATOR POS TO 1; SET TERM ^; create trigger BAS_pkassign for MATERIAL active before insert position 66 EXECUTE BLOCK AS declare posid bigint; select gen_id(POS, 1) from RDB$DATABASE into :posid; BEGIN END SET TERM ; ^ INSERT INTO MATERIAL ( /*ID */ LOCATION, POSID, ARTID, ARTIDCONT, QUANTITY ) SELECT 1000, ':posid', 309, BAS

INSERT SELECT in Firebird

∥☆過路亽.° 提交于 2020-01-04 15:28:03
问题 I'm new to firebird and I have verious issues. I want to insert various lines into a table selected from another table. Here's the code: /*CREATE GENERATOR POS; */ SET GENERATOR POS TO 1; SET TERM ^; create trigger BAS_pkassign for MATERIAL active before insert position 66 EXECUTE BLOCK AS declare posid bigint; select gen_id(POS, 1) from RDB$DATABASE into :posid; BEGIN END SET TERM ; ^ INSERT INTO MATERIAL ( /*ID */ LOCATION, POSID, ARTID, ARTIDCONT, QUANTITY ) SELECT 1000, ':posid', 309, BAS

Firedac select working with Firebird returns no records

混江龙づ霸主 提交于 2020-01-04 05:45:19
问题 Hello I'm working with Firedac (Delphi Seattle) using Firebird (2.5) as a database, when I run this query using a TFDQuery, no records are returned: SELECT ID FROM USERS WHERE PWD = 'êHÆ–!+' The same query within a Database program as IbExpert return one record. Is there some parameter with Firedac components to configure that can solve this issue. Thanks. 回答1: It's in the query string and it's the ! char. By default, query strings are preprocessed, and you must escape constant chars like ! ,