jonpryor / dblinq2007

Automatically exported from code.google.com/p/dblinq2007
0 stars 0 forks source link

Firebird provider does not trim off spaces from Constraint #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When looking in the dbml file, the Association Names have trailing spaces:

<Association Name="FK_ADLHISTSECTIONA_ADLHISTMAIN                         " 
Member="AdLHistSectionA" Storage="_adLhIstSectionA" Type="AdLHistSectionA" 
ThisKey="AsMTID" OtherKey="AsMTID" DeleteRule="NO ACTION" />

The trailing spaces need to be trimmed off so it looks like this:

<Association Name="FK_ADLHISTSECTIONA_ADLHISTMAIN" Member="AdLHistSectionA" 
Storage="_adLhIstSectionA" Type="AdLHistSectionA" ThisKey="AsMTID" 
OtherKey="AsMTID" DeleteRule="NO ACTION" />

Attached is a patch for file 
src/DbLinq.Firebird/FirebirdSchemaLoader.Constraints.cs which fixes the problem.

Original issue reported on code.google.com by scarle...@gmail.com on 18 Aug 2010 at 9:16

Attachments:

GoogleCodeExporter commented 9 years ago
The first patch file was not created with a subversion UI, this patch file is 
created with TortoiseSVN.

Original comment by scarle...@gmail.com on 19 Aug 2010 at 3:29

Attachments: