SlideShare a Scribd company logo
DATABASE WITH ENTITY
FRAMEWORK CODEFIRST
APPROACH WITH WCF SERVICE
We will be creating project in three parts..
• Creating database in code…(EF code first)
• Defining context for DB
• Writing services.

For 1st two create new project with class
library
For services use WCF service library

All code is done in VS 2013 and follow namespace properly…….and also add
reference of NuGet packafe EF 6
For creating database in this model we write normal
coding classes as in programs, these classes with [data
contract] attribute transfer into database table and [data
member] attribute transfer into its attribute.
Now we define a context for accessing and
interacting with database
Here dbcontext is class defined in namespaces
System.data.enitity as
defined in slides for accessing databse.
How to create fast and much more efficient database
Now we write the interfaces that
will be accessible by clients ….ie
functionality that can be visible
on client side
Tags placed over interfaces act as
operation available for client to
access. ie…as it is a WCF service
now writing code for above functionality ie
interface and defining various logic ….// as
sample given for idea
How to create fast and much more efficient database
How to create fast and much more efficient database
DATABASE part all done just need to
write a class for accessing service that
will handle client call.
How to create fast and much more efficient database
How to create fast and much more efficient database
Entity model of classes built……
visual way for checking if a proper
Db is generated
Various DB table created after running code for first time
in (localdb)v11.0
Table are created only if Db by that context is not there
previously.
How to create fast and much more efficient database
How to create fast and much more efficient database
THANK YOU
For any query and help in making different
UI connection and config parts drop me a
mail : shivang.tyagi21@yahoo.in

More Related Content

PDF
Servlets as introduction (Advanced programming)
PDF
Advanced programming ch2
PDF
Advanced Application Architecture Symfony Live Berlin 2018
PDF
Workflow for-dialog flow-integration-with-uipath-and-telephony-gateway
PPT
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
PDF
Advanced application architecture
KEY
Introducing LINQ
PPTX
LINQ in C#
Servlets as introduction (Advanced programming)
Advanced programming ch2
Advanced Application Architecture Symfony Live Berlin 2018
Workflow for-dialog flow-integration-with-uipath-and-telephony-gateway
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
Advanced application architecture
Introducing LINQ
LINQ in C#

What's hot (17)

PPT
Module 3: Introduction to LINQ (PowerPoint Slides)
PPTX
Asp.net c# MVC-5 Training-Day-1 of Day-9
PDF
Entity Framework 7: New features and changes
PDF
Engineering Student MuleSoft Meetup#2 - API Design Using Restful API Modelin...
PPT
Public Library
PPTX
Mule Microsoft Dynamics AX 2012 Connector
PDF
Advanced web application architecture Way2Web
PPT
Mule salesforce
PPTX
Content based routing tutorial in mule
PPTX
Automatic documentation with mule
 
PPT
Linq in C# 3.0: An Overview
PDF
CenitHub: Introduction
PPTX
Mule
 
PPTX
Www(alyssa) (2)
PPT
Microsoft.Net Platform Basics
PDF
[WSO2Con EU 2017] Introduction to Ballerina
Module 3: Introduction to LINQ (PowerPoint Slides)
Asp.net c# MVC-5 Training-Day-1 of Day-9
Entity Framework 7: New features and changes
Engineering Student MuleSoft Meetup#2 - API Design Using Restful API Modelin...
Public Library
Mule Microsoft Dynamics AX 2012 Connector
Advanced web application architecture Way2Web
Mule salesforce
Content based routing tutorial in mule
Automatic documentation with mule
 
Linq in C# 3.0: An Overview
CenitHub: Introduction
Mule
 
Www(alyssa) (2)
Microsoft.Net Platform Basics
[WSO2Con EU 2017] Introduction to Ballerina
Ad

Similar to How to create fast and much more efficient database (20)

DOCX
MVC Application using EntityFramework Code-First approach Part4
DOCX
Learning MVC Part 3 Creating MVC Application with EntityFramework
PPT
Overview of CSharp MVC3 and EF4
PPTX
Web services
PPTX
Ef code first
DOC
3 tier architecture in asp.net
DOCX
C# Unit 1 notes
PDF
.NET Core, ASP.NET Core Course, Session 17
DOCX
unit 3.docx
PDF
Dot Net Fundamentals
PDF
ASP.NET Core Interview Questions PDF By ScholarHat.pdf
PPTX
Background Tasks with Worker Service
PPTX
Salesforce
PPTX
Entity framework
PDF
Beginning with wcf service
PPT
Dot net training-navimumbai
PPTX
.Net framework
PPTX
Unit - 1: ASP.NET Basic
PDF
Dev buchan leveraging
PPT
Entity frameworks101
MVC Application using EntityFramework Code-First approach Part4
Learning MVC Part 3 Creating MVC Application with EntityFramework
Overview of CSharp MVC3 and EF4
Web services
Ef code first
3 tier architecture in asp.net
C# Unit 1 notes
.NET Core, ASP.NET Core Course, Session 17
unit 3.docx
Dot Net Fundamentals
ASP.NET Core Interview Questions PDF By ScholarHat.pdf
Background Tasks with Worker Service
Salesforce
Entity framework
Beginning with wcf service
Dot net training-navimumbai
.Net framework
Unit - 1: ASP.NET Basic
Dev buchan leveraging
Entity frameworks101
Ad

Recently uploaded (20)

PPTX
Institutional Correction lecture only . . .
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
master seminar digital applications in india
PDF
01-Introduction-to-Information-Management.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
Institutional Correction lecture only . . .
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
2.FourierTransform-ShortQuestionswithAnswers.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Classroom Observation Tools for Teachers
202450812 BayCHI UCSC-SV 20250812 v17.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
master seminar digital applications in india
01-Introduction-to-Information-Management.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
102 student loan defaulters named and shamed – Is someone you know on the list?

How to create fast and much more efficient database

  • 1. DATABASE WITH ENTITY FRAMEWORK CODEFIRST APPROACH WITH WCF SERVICE
  • 2. We will be creating project in three parts.. • Creating database in code…(EF code first) • Defining context for DB • Writing services. For 1st two create new project with class library For services use WCF service library All code is done in VS 2013 and follow namespace properly…….and also add reference of NuGet packafe EF 6
  • 3. For creating database in this model we write normal coding classes as in programs, these classes with [data contract] attribute transfer into database table and [data member] attribute transfer into its attribute.
  • 4. Now we define a context for accessing and interacting with database Here dbcontext is class defined in namespaces System.data.enitity as defined in slides for accessing databse.
  • 6. Now we write the interfaces that will be accessible by clients ….ie functionality that can be visible on client side Tags placed over interfaces act as operation available for client to access. ie…as it is a WCF service
  • 7. now writing code for above functionality ie interface and defining various logic ….// as sample given for idea
  • 10. DATABASE part all done just need to write a class for accessing service that will handle client call.
  • 13. Entity model of classes built…… visual way for checking if a proper Db is generated
  • 14. Various DB table created after running code for first time in (localdb)v11.0 Table are created only if Db by that context is not there previously.
  • 17. THANK YOU For any query and help in making different UI connection and config parts drop me a mail : shivang.tyagi21@yahoo.in