Microsoft Tech Club Cairo University "MSTC'16 Builders and Developers " Session #8

24
Introduction to Database Session #8 Presented Prepared by Wagdy Mohamed Aya Zakaria

Transcript of Microsoft Tech Club Cairo University "MSTC'16 Builders and Developers " Session #8

Introduction to Database

Session #8

Presented Prepared byWagdy Mohamed

Aya Zakaria

Agenda

-What is database?-Basic queries of database

-Connect your universal application with SQLite-Let’s try

What is database?

Basic queries of database

-Create-Insert-Select-Delete-Update

-Drop

Create

CREATE TABLE table_name(Column_Name1 datatype (size),Column_Name2 datatype (size),

.

.

.

.Column_Name3 datatype (size);)

Insert

INSERT INTO table_nameVALUES (value1,value2,….);ORINSERT INTO table_name

(column1,column2,column3)…,VALUES(value1,value2,value3,…);

Select

SELECT column_nameFROM table_nameWHERE your_condition;OR

SELECT* FROM table_nameWHERE your_condition;

Operators

=Equal > <Not equal <Less than

>Greater than =>Greater than or equal

=<Less than or equalLike Search for pattern

Update

UPDATE table_nameSET column1=VALUE,coulmn2=VALUEWHERE your_condition;

Drop and Delete

DELETE coulmn_nameFROM table_nameWHERE your_condition;

DROP table_name;

Connect your universal application with SQLite

First press tools then open updates and extensions, make sure that these 2 extensions are available

Connect your universal application with SQLiteThen from solution explorer right click on References and choose Add reference

Connect your universal application with SQLite

Repeat the previous steps on the Windows phone 8.1 part

Connect your universal application with SQLite

Connect your universal application with SQLite

Connect your universal application with SQLiteYou will notice these warnings in windows and windows phone

Connect your universal application with SQLite

To solve this warnings open Configuration Manager fromDebug and choose x86

Connect your universal application with SQLiteRight click on your project from solution explorerand choose Manage nugget packages and install SQLite-net

Connect your universal application with SQLiteTo make sure that everything is going right you will notice appearance of this 2 classes in windows and window phone part

How to create List in XAML

Contact us

wagdy.mohamed.95

[email protected]

yoya.zakaria

[email protected]