LinqConnect for Metro

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Milamber
Posts: 4
Joined: Tue 26 Feb 2013 12:33

LinqConnect for Metro

Post by Milamber » Tue 26 Feb 2013 13:00

Hello,
I tried to follow http://blogs.devart.com/dotconnect/linq ... guide.html but i came across some problems.

Fisrt, if i lunch the exemple, it won't work because they Temporarykey is not in the project.

Then, if i try to do the exemple by myself I have some problem in TaskListDatabase.cs
How to do it is not explain in the tutorial. My error is at
new TaskListDatabase(DefaultConnectionString)
.
And this cs make som error at the mainPage.
When i wrote :
db.Items.InsertOnSubmit(new TaskListItem() { Name = "Task " + i, Category = "Category " + (i % 3), Description = "Task " + i + " Description" });
I have : multiple definition of Items/Name/Category/Description.

I'm sure it's nothing but I just can't see the problem.

Thanks

yuraplusev
Posts: 5
Joined: Tue 26 Feb 2013 12:56

Re: LinqConnect for Metro

Post by yuraplusev » Tue 26 Feb 2013 13:32

Then, if i try to do the exemple by myself I have some problem in TaskListDatabase.cs
How to do it is not explain in the tutorial. My error is at
new TaskListDatabase(DefaultConnectionString)
.
And this cs make som error at the mainPage.


Check namespace! But I also did this example, I create a database with samomtoyatelnom not create a table?
Last edited by yuraplusev on Tue 26 Feb 2013 13:40, edited 1 time in total.

yuraplusev
Posts: 5
Joined: Tue 26 Feb 2013 12:56

Re: LinqConnect for Metro

Post by yuraplusev » Tue 26 Feb 2013 13:36

And as soon as I use the Database Explorer, then after that I can not close connect with the base?

Milamber
Posts: 4
Joined: Tue 26 Feb 2013 12:33

Re: LinqConnect for Metro

Post by Milamber » Tue 26 Feb 2013 13:40

My name space are alright. It's just that he doesnt want any argument in the constructor.

And
And as soon as I use the Database Explorer, then after that I can not close connect with the base?
I dont realy understand what you are trying to said :/

yuraplusev
Posts: 5
Joined: Tue 26 Feb 2013 12:56

Re: LinqConnect for Metro

Post by yuraplusev » Tue 26 Feb 2013 13:59

namespace on TAskLIstdatabase.Designer.cs should be the same TaskListDatabase, and if you properly inherit the constructor DataContext, the argument can be made connection string.

yuraplusev
Posts: 5
Joined: Tue 26 Feb 2013 12:56

Re: LinqConnect for Metro

Post by yuraplusev » Tue 26 Feb 2013 14:03

Milamber wrote:
And as soon as I use the Database Explorer, then after that I can not close connect with the base?
I dont realy understand what you are trying to said :/

Sorry, I want to say: I can not remove connect with the Database, after open it with DatabaseExplorer.

Milamber
Posts: 4
Joined: Tue 26 Feb 2013 12:33

Re: LinqConnect for Metro

Post by Milamber » Tue 26 Feb 2013 14:46

I found the problem. If i create the tasklistdatabase.cs fisrt then the .lqml this programme will work.

But now i need a licence :/

I read that sqlite licence is free is that right?


And thanks for your help!

Post Reply