SlideShare a Scribd company logo
1 of 11
Working With Designers CIS-266
Connection String Stored in app.config (XML file) ,[object Object]
Database file is copied from project folder to bin folder when run project,[object Object]
Form Contents dataset manages data in memory table adapter manages the requests for data (both in/out of db) Can include multiple SELECT statements table adapter manager controls how to manage data changes to table and related tables In relational database order of edits matters
Form Contents - 2 data grid view provides on screen display of data  Includes built in tools – sorting, adjusting table binding navigator manages navigation of rows/editing binding source connects form/controls to data set Serves as “glue” to make sure the contents of each field in each row properly displayed in controls
Binding Complex data binding happens when dealing with rows and columns (grid, list controls) Simple data binding is for a control connected to a single column
Reading/Writing Data Getting data: Table adapter (or data adapter) has a FILL method that executes the SELECT statement An argument specifies where the data should end up in memory Saving data:  Table adapter (or data adapter) has an UPDATE method Table adapter manager has an UPDATE ALL that manages the execution of updates to related tables
Reading/Writing Data - 2 Ensure that all validation is done (Me.Validate)  Ensure that no editing is going on before use Update (bindingsource.EndEdit) Referential integrity means order matters
Exceptions Have exception classes for each data provider (SQL Server, Oracle, OLEDB, ODBC) Reading the Number property of SQL Server exception objects refers to the specific error from SQL Server Typical exceptions in ADO.Net not provider based DB Concurrency - row in table is different that the original version (optimistic concurrency) Data Exception - generic exception from provider Constraint Exception violates validation rules No null allowed - required field is missing a value
Data Grid Exceptions Data grid can generate exceptions Value in cell doesn't match requirements in data column (Null, invalid type) Can find the location of an exception by Row and Column (index values)
Refreshing Data After save data, may want to "refresh" the dataset - make sure what's in memory is same as what was saved, especially when have identity columns

More Related Content

What's hot (19)

Views
ViewsViews
Views
 
Stateful data serialization
Stateful data serializationStateful data serialization
Stateful data serialization
 
Actuate sections
Actuate sectionsActuate sections
Actuate sections
 
SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
 
asp.net data controls
asp.net data controlsasp.net data controls
asp.net data controls
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)
 
Krish data controls
Krish data controlsKrish data controls
Krish data controls
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 
Ado.net
Ado.netAdo.net
Ado.net
 
Three tier Architecture of ASP_Net
Three tier Architecture of ASP_NetThree tier Architecture of ASP_Net
Three tier Architecture of ASP_Net
 
What is a DATA DICTIONARY?
What is a DATA DICTIONARY?What is a DATA DICTIONARY?
What is a DATA DICTIONARY?
 
Ms access 1
Ms access 1Ms access 1
Ms access 1
 
Physical architecture of sql server
Physical architecture of sql serverPhysical architecture of sql server
Physical architecture of sql server
 
Asp.net interview questions
Asp.net interview questionsAsp.net interview questions
Asp.net interview questions
 
oracle
oracleoracle
oracle
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
 

Viewers also liked

Julio Pea Sonsonate 6 Julio De 2009
Julio Pea Sonsonate 6 Julio De 2009Julio Pea Sonsonate 6 Julio De 2009
Julio Pea Sonsonate 6 Julio De 2009joseadalberto
 
Исследования Zilver PTX (Бессонов И.С., Тюмень)
Исследования  Zilver PTX  (Бессонов И.С., Тюмень)Исследования  Zilver PTX  (Бессонов И.С., Тюмень)
Исследования Zilver PTX (Бессонов И.С., Тюмень)NPSAIC
 
Kriptografi
KriptografiKriptografi
KriptografiBambang
 
Cosmetology School
Cosmetology SchoolCosmetology School
Cosmetology Schoollenacaudle
 
Enterprise Wireless LAN Reliability
Enterprise Wireless LAN ReliabilityEnterprise Wireless LAN Reliability
Enterprise Wireless LAN ReliabilityMark Cowtan
 
3 d lists powerpoint diagrams and powerpoint templates
3 d lists powerpoint diagrams and powerpoint templates3 d lists powerpoint diagrams and powerpoint templates
3 d lists powerpoint diagrams and powerpoint templatesSlideTeam.net
 
CIS 512-Week 4 Presentation
CIS 512-Week 4 PresentationCIS 512-Week 4 Presentation
CIS 512-Week 4 PresentationNFCU
 
Sam 2010v2 student_getting_started_june2011
Sam 2010v2 student_getting_started_june2011Sam 2010v2 student_getting_started_june2011
Sam 2010v2 student_getting_started_june2011mebutler831938
 
Se Documenter3
Se Documenter3Se Documenter3
Se Documenter3apajard
 
Testimony: Navigational Coaching Workshop
Testimony: Navigational Coaching WorkshopTestimony: Navigational Coaching Workshop
Testimony: Navigational Coaching Workshoppatlipovski
 
La cuisine lyonnaise
La cuisine lyonnaiseLa cuisine lyonnaise
La cuisine lyonnaiseAdnaa Gautier
 
C2.0 2010 d lacallade presentation version
C2.0 2010 d lacallade presentation versionC2.0 2010 d lacallade presentation version
C2.0 2010 d lacallade presentation versionDawn Lacallade
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentationwebhostingguy
 

Viewers also liked (18)

Fra domenech i montaner - 230109
Fra   domenech i montaner - 230109Fra   domenech i montaner - 230109
Fra domenech i montaner - 230109
 
Julio Pea Sonsonate 6 Julio De 2009
Julio Pea Sonsonate 6 Julio De 2009Julio Pea Sonsonate 6 Julio De 2009
Julio Pea Sonsonate 6 Julio De 2009
 
Исследования Zilver PTX (Бессонов И.С., Тюмень)
Исследования  Zilver PTX  (Бессонов И.С., Тюмень)Исследования  Zilver PTX  (Бессонов И.С., Тюмень)
Исследования Zilver PTX (Бессонов И.С., Тюмень)
 
Informe Red En Rojos
Informe Red En RojosInforme Red En Rojos
Informe Red En Rojos
 
Kriptografi
KriptografiKriptografi
Kriptografi
 
Cosmetology School
Cosmetology SchoolCosmetology School
Cosmetology School
 
Enterprise Wireless LAN Reliability
Enterprise Wireless LAN ReliabilityEnterprise Wireless LAN Reliability
Enterprise Wireless LAN Reliability
 
3 d lists powerpoint diagrams and powerpoint templates
3 d lists powerpoint diagrams and powerpoint templates3 d lists powerpoint diagrams and powerpoint templates
3 d lists powerpoint diagrams and powerpoint templates
 
CIS 512-Week 4 Presentation
CIS 512-Week 4 PresentationCIS 512-Week 4 Presentation
CIS 512-Week 4 Presentation
 
Sam 2010v2 student_getting_started_june2011
Sam 2010v2 student_getting_started_june2011Sam 2010v2 student_getting_started_june2011
Sam 2010v2 student_getting_started_june2011
 
Green tea 10 24-11
Green tea 10 24-11Green tea 10 24-11
Green tea 10 24-11
 
Se Documenter3
Se Documenter3Se Documenter3
Se Documenter3
 
Testimony: Navigational Coaching Workshop
Testimony: Navigational Coaching WorkshopTestimony: Navigational Coaching Workshop
Testimony: Navigational Coaching Workshop
 
2008 Docentes Y Especialidad
2008 Docentes Y Especialidad2008 Docentes Y Especialidad
2008 Docentes Y Especialidad
 
La cuisine lyonnaise
La cuisine lyonnaiseLa cuisine lyonnaise
La cuisine lyonnaise
 
Flickr youtube
Flickr youtubeFlickr youtube
Flickr youtube
 
C2.0 2010 d lacallade presentation version
C2.0 2010 d lacallade presentation versionC2.0 2010 d lacallade presentation version
C2.0 2010 d lacallade presentation version
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentation
 

Similar to Working with designers

Similar to Working with designers (20)

What is ado .net architecture_.pdf
What is ado .net architecture_.pdfWhat is ado .net architecture_.pdf
What is ado .net architecture_.pdf
 
PPT SQL CLASS.pptx
PPT SQL CLASS.pptxPPT SQL CLASS.pptx
PPT SQL CLASS.pptx
 
Fg d
Fg dFg d
Fg d
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
 
Adbms
AdbmsAdbms
Adbms
 
T-SQL Overview
T-SQL OverviewT-SQL Overview
T-SQL Overview
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 
NoSQL - A Closer Look to Couchbase
NoSQL - A Closer Look to CouchbaseNoSQL - A Closer Look to Couchbase
NoSQL - A Closer Look to Couchbase
 
AWS RDS Migration Tool
AWS RDS Migration Tool AWS RDS Migration Tool
AWS RDS Migration Tool
 
Rdbms
RdbmsRdbms
Rdbms
 
Disconnected Architecture and Crystal report in VB.NET
Disconnected Architecture and Crystal report in VB.NETDisconnected Architecture and Crystal report in VB.NET
Disconnected Architecture and Crystal report in VB.NET
 
CIS282 Midterm review
CIS282 Midterm reviewCIS282 Midterm review
CIS282 Midterm review
 
BIS06 Physical Database Models
BIS06 Physical Database ModelsBIS06 Physical Database Models
BIS06 Physical Database Models
 
BIS06 Physical Database Models
BIS06 Physical Database ModelsBIS06 Physical Database Models
BIS06 Physical Database Models
 
D.dsgn + dbms
D.dsgn + dbmsD.dsgn + dbms
D.dsgn + dbms
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
 
Myth busters - performance tuning 102 2008
Myth busters - performance tuning 102 2008Myth busters - performance tuning 102 2008
Myth busters - performance tuning 102 2008
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
Databases
DatabasesDatabases
Databases
 

More from Randy Riness @ South Puget Sound Community College

More from Randy Riness @ South Puget Sound Community College (20)

Stored procedures
Stored proceduresStored procedures
Stored procedures
 
3 sql overview
3 sql overview3 sql overview
3 sql overview
 
Normalization
NormalizationNormalization
Normalization
 
CIS160 final review
CIS160 final reviewCIS160 final review
CIS160 final review
 
SQL Constraints
SQL ConstraintsSQL Constraints
SQL Constraints
 
CIS 245 Final Review
CIS 245 Final ReviewCIS 245 Final Review
CIS 245 Final Review
 
CIS145 Final Review
CIS145 Final ReviewCIS145 Final Review
CIS145 Final Review
 
Cis166 Final Review C#
Cis166 Final Review C#Cis166 Final Review C#
Cis166 Final Review C#
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objects
 
CIS245 sql
CIS245 sqlCIS245 sql
CIS245 sql
 
CSS
CSSCSS
CSS
 
XPath
XPathXPath
XPath
 
XSLT Overview
XSLT OverviewXSLT Overview
XSLT Overview
 
Schemas 2 - Restricting Values
Schemas 2 - Restricting ValuesSchemas 2 - Restricting Values
Schemas 2 - Restricting Values
 
CIS 145 test 1 review
CIS 145 test 1 reviewCIS 145 test 1 review
CIS 145 test 1 review
 
XML schemas
XML schemasXML schemas
XML schemas
 
Document type definitions part 2
Document type definitions part 2Document type definitions part 2
Document type definitions part 2
 
Document type definitions part 1
Document type definitions part 1Document type definitions part 1
Document type definitions part 1
 
DOM specifics
DOM specificsDOM specifics
DOM specifics
 
SQL overview and software
SQL overview and softwareSQL overview and software
SQL overview and software
 

Working with designers

  • 2.
  • 3.
  • 4. Form Contents dataset manages data in memory table adapter manages the requests for data (both in/out of db) Can include multiple SELECT statements table adapter manager controls how to manage data changes to table and related tables In relational database order of edits matters
  • 5. Form Contents - 2 data grid view provides on screen display of data Includes built in tools – sorting, adjusting table binding navigator manages navigation of rows/editing binding source connects form/controls to data set Serves as “glue” to make sure the contents of each field in each row properly displayed in controls
  • 6. Binding Complex data binding happens when dealing with rows and columns (grid, list controls) Simple data binding is for a control connected to a single column
  • 7. Reading/Writing Data Getting data: Table adapter (or data adapter) has a FILL method that executes the SELECT statement An argument specifies where the data should end up in memory Saving data: Table adapter (or data adapter) has an UPDATE method Table adapter manager has an UPDATE ALL that manages the execution of updates to related tables
  • 8. Reading/Writing Data - 2 Ensure that all validation is done (Me.Validate) Ensure that no editing is going on before use Update (bindingsource.EndEdit) Referential integrity means order matters
  • 9. Exceptions Have exception classes for each data provider (SQL Server, Oracle, OLEDB, ODBC) Reading the Number property of SQL Server exception objects refers to the specific error from SQL Server Typical exceptions in ADO.Net not provider based DB Concurrency - row in table is different that the original version (optimistic concurrency) Data Exception - generic exception from provider Constraint Exception violates validation rules No null allowed - required field is missing a value
  • 10. Data Grid Exceptions Data grid can generate exceptions Value in cell doesn't match requirements in data column (Null, invalid type) Can find the location of an exception by Row and Column (index values)
  • 11. Refreshing Data After save data, may want to "refresh" the dataset - make sure what's in memory is same as what was saved, especially when have identity columns