Databases in .NET

1,454 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,454
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Databases in .NET

  1. 1. Databases in .Net<br />Victor Haydin<br />Eleks Software Ltd.<br />
  2. 2. Data and Databases<br />Computer science is not about computing. <br />Its about <br />data processing.<br />
  3. 3. Database engines<br />
  4. 4. Application/DB interaction<br />Frontend Server<br />Presentation Layer<br />Business Logic Layer<br />Data Access Layer<br />Database drivers<br />Database Server<br />
  5. 5. ADO.Net<br />
  6. 6. System.Data.SqlClient<br />System.Data.SqlClient – set of classes for low-level operations with MS SQL Server.<br />
  7. 7. demo<br />SQL Client<br />
  8. 8. Transactions & Isolation levels<br />
  9. 9. Isolation levels<br />Read Issues<br />Locks<br />
  10. 10. ORM<br />
  11. 11. Why ORM?<br />Relational Model:<br />Tables<br />Rows<br />Columns<br />Primary/Foreign keys<br />?<br />Object Model:<br />Collections<br />Objects<br />Properties<br />Composition<br />Inheritance<br />
  12. 12. ORM Frameworks<br />Entity Framework<br />LINQ2SQL<br />NHibernate<br />DevExpress XPO<br />Subsonic<br />ObjectMapper.Net<br />Self-made<br />
  13. 13. ADO.Net Entity Framework<br />Design approaches:<br /><ul><li>Database First
  14. 14. Model First
  15. 15. Code First</li></ul>Entity Data Model:<br /><ul><li>Mapping
  16. 16. Entities
  17. 17. Relationships
  18. 18. Schema Definition Language</li></ul>Querying Data:<br /><ul><li>eSQL
  19. 19. LINQ to Entities
  20. 20. Native SQL</li></ul>Inheritance:<br /><ul><li>Table per hierarchy
  21. 21. Table per type
  22. 22. Table per concrete class</li></li></ul><li>demo<br />Entity Framework<br />
  23. 23. Canonical Functions<br />
  24. 24. Q&A<br />

×