This is a migrated thread and some comments may be shown as answers.

[Solved] Demo for SQL Data access with WIN8 Program

3 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Volker
Top achievements
Rank 2
Volker asked on 18 Oct 2012, 05:32 PM
Hy,
i have to access data which reside on an SQL Server in WIN8 Programs.
i think this should be easy with the new Feature of ORM (ASP.NET Web API services).
But i dont find a demo in the ORM SDK.
Is there a short Demo (or can you create one), where we can see what is to do in ORM and in the Windows 8 Program to get the SQL Data? (Display Edit, Append and Delete).

Volker

3 Answers, 1 is accepted

Sort by
0
Joan
Top achievements
Rank 1
answered on 22 Oct 2012, 03:19 AM
Volker, are you refering to Windows 8 Metro Apps or desktop applications?
Metro apps will not be able to connect directly to SQL, but they can connect to a service.  If you separate the data layer into a service, you will be able to create a very robust front end and you can also connect different front ends to the same service project.

If you need a local database, you can use SQLite and keep the whole app self contained.

Joan.
0
Volker
Top achievements
Rank 2
answered on 22 Oct 2012, 08:03 AM
 >are you refering to Windows 8 Metro Apps or desktop applications
I refere for WIndows metro Apps.

My Question was for a Small Demo Programm which uses ORM (Which connect to a SQL Database) and Metro Apps which connect to ORM and Display Edit, Append and Delete Data.
In ORM there are many Demos, but no WIth Metro Style Apps.

Volker
0
Lini
Telerik team
answered on 22 Oct 2012, 08:31 AM
Hello,

Metro applications run in a sandboxed environment and have no direct access to a local or remote SQL server. This means that you can only use a service (e.g. WCF) in a separate project and consume it from the Windows Store application. Refer to the OpenAccess ORM Programmer's guide for more information on setup and implementation of the WCF service - http://www.telerik.com/help/openaccess-orm/getting-started-wcf-services.html

Regards,
Lini
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Volker
Top achievements
Rank 2
Answers by
Joan
Top achievements
Rank 1
Volker
Top achievements
Rank 2
Lini
Telerik team
Share this question
or