jonpryor / dblinq2007

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

Error at Quering database #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I already posted this to the forum because i thought it was an 
misconfiguration:  
http://groups.google.com/group/dblinq/browse_thread/thread/a2113cfec7d39075
 

What steps will reproduce the problem?
1. Create DBML using VS.net using OracleDataContext
2. Create Code File and include into solution
3. Query object 

IMDataContext context = new IMDataContext(_connection_string, new 
OracleVendor());
var is_available = from w in context.Products where w.Name == "MyProduct" 
select w;
if(w.Count() == 0)
throw ProductNotFoundException();

At this query the tablename is empty because at AttributeMetaTable.cs#43 
the tablename is only checked if it is null, and not if it is emtpy or null

What is the expected output? What do you see instead?
hoped to get all products which match the string 'MyProduct' 

What version of the product are you using? On what operating system?
Subversion-Trunk, Windows XP

Please provide any additional information below.

replace the statement on string.IsNullOrEmpty() and it works fine.

Original issue reported on code.google.com by mabuni...@gmail.com on 14 Apr 2010 at 12:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1404.

Original comment by jonmpr...@gmail.com on 14 Apr 2010 at 3:29

GoogleCodeExporter commented 9 years ago

Original comment by jonmpr...@gmail.com on 16 Apr 2010 at 2:22