1
votes

I am Using SQLite as database in Windows Store application using C# & XAML.

I fallowed this link from msdn & samples

I tried & I got success for Sample application as How to Create Database & manipulate database, after that when I try to use in my Original Project, I am getting error in file SQLite.cs This is one of the file Which will Come with SQLite-net.

The error is

'Expression' is a 'namespace' but is used like a 'type' D:\D drive\Webview\Webview\SQLite.cs

I think the problem with my project Why Because If I try to use SQLite in new project it is working fine. I didn't get that what is the issue.

If any one knows who are familiar with SQLite in metro apps, Please help me out.

If question is not reasonable You can ask more information about this I will try to explain

UPDATE: You can get SQLite.cs file here SQLite.cs

Error getting here Line no: 2250,2256 etc..

Expression _where;
List<Ordering> _orderBys;
int? _limit;
int? _offset;

BaseTableQuery _joinInner;
Expression _joinInnerKeySelector;
BaseTableQuery _joinOuter;
Expression _joinOuterKeySelector;
Expression _joinSelector;

Expression _selector;
1
Some code would be helpfull. - RvdK
Do you have a namespace called 'Expression' in your code? - Steve
@Steve Yes, using System.Linq.Expressions; Please check Updated Question. - Kumar
I mean a namespace in your own code. Search for namespace Expression - Steve
@Steve No, I don't have. - Kumar

1 Answers

0
votes

Oh, Finally I got the Solution from MSDN

I am using Expression some where in my project.

using Expression.Blend.SampleData.SampleDataSource;
So when compiler sees 'Expression' it is being treated as namespace instead of type. 

Thanks to Steve