Roberto Brunetti

Developing in the cloud

.NET Programming

Architecting DAL in .NET

Abbiamo aggiornato la scheda del corso con argomenti che già trattavamo nelle edizioni passati come appendice.

La scaletta degli argomenti prevede:

Dal 1998 a oggi
  • Windows DNA
  • DNS: Digital Nervous System
  • Presentation Service
  • Component Service
  • Data Service

Architecting in 2005/2006

  • Filosofia
  • User Interface Component
  • User Process Component
  • Business Layer
  • Service Interface
  • Business Entity
  • Data Access Component
  • Data Access Helper Component
  • Service Agent
  • Come SOA si incastra in tutto questo
  • Strict Layering
  • Relaxed Layering
  • State Machine
  • Data Access Application Block
  • Sql Helper custom

[ADO.NET Recall]

  • Parte opzionale: serve per fare il punto su ADO.NET 2.0
  • SQL Server Provider
  • Microsoft Oracle Data Provider
  • Oracle Data Provider
  • Gestione errori in Stored Procedure
  • Try/Catch corretto
  • Portabilità del codice
  • Oracle e REF Cursor
  • CommandBehavior
  • DataSet Relation
  • Schema
  • DataSet srongly-typed
  • Aggiornamenti
  • RowVersion
  • CommandBuilder Pro (pochi) e Contro
  • Concorrenza
  • Campi null
  • Transazioni su Connection

Multi-DB

  • via OLE-DB
  • via Interfacce
  • via Componenti specifici
  • con Data Access Application Block
  • Pro e contro di ogni soluzione

Business Entity

  • XML
  • DataSet
  • Typed DataSet
  • Business Entity
  • Business Entity con CRUD
  • Managers
  • Pro e contro di ogni soluzione

Transaction 1.x

  • Transazioni da ADO.NET
  • Transazioni da Enterprise Services 1.x
  • [Architettura MTS e COM+] : se necessaria
  • Automatic Transaction
  • Composable Transaction
  • Transaction Context
  • Commit & Complete

System.Transaction 2.0

  • Su un solo DB
  • Da più componenti
  • Su più DB
  • Explicit Model
  • Implicit Model
  • Transaction
  • CommittableTransaction
  • Transaction Ambient
  • TransactionScope
  • Enterprise Service with 2.0
  • TrasactionOption
  • TransactionIsolation
  • Concurrency e Transaction
  • Transaction Clone
  • Transaction Events
  • Promotion & Promotion Event
  • Transaction 2.0 model in 1.x

ADO.NET 2.0

  • Multiple Active Result Set (MARS)
  • Async Command
  • Sql Helper Asincrono Custom
  • SQLType
SQL 2005 e ADO.NET 2.0
  • SQL Server 2005
  • T-SQL
  • Integrazione con ADO.NET 2.0
  • SQL CLR
  • SQL 2005 Notification Service
  • SQL 2005 Broker
    • Message Type
    • Contract
    • Queue
    • Service
    • Dialog
    • Conversation
    • Activation

Speed-up with MSMQ

  • More Async
  • Perchè ?
  • Semplicità di utilizzo
  • Classi managed
  • MSMQ Transaction
  • System.Transaction integration
  • Admin Queue
  • Journaling
  • Response Queue
  • Custom Object
  • Custom Formatter

Security

  • n-tier Apps
  • n-layer Apps
  • Impersonation
  • Trusted Connection
  • Standard Connection
  • Hop
  • Delegation
  • Pro e Contro delle varie modalità
  • SQL 2000/2005 Login
  • SQL 2000/2005 User
  • SQL 2000/2005 Roles
  • SQL 2000/2005 Application Role

Business Layer

  • Interfacce
  • Generics
  • DalFactory singleton
  • BaseBiz
  • Override
  • Eventi custom
  • Utilizzo di TransactionScope
  • Metodi asincroni
  • AsyncResult custom
  • BIZ+DAL+Helper asicrono
  • MSMQLayer
  • MSMQFactory
  • Windows Workflow Foundation
    • Corretto utilizzo
    • Inserimento nell'architettura complessiva

Service Agent Layer e Servizi

  • ServiceAgent Layer
    • Web Service 2.0
    • Servizi WCF
  • Web Service asicroni lato client
  • Web Service asincroni lato server
  • Servizi WCF asincroni
  • Inserimento servizi lato server nell'architettura complessiva

UI Layer

  • UI Layer
  • Workflow Foundation
  • PageFlow
  • Custom UI Layer
  • Thread consideration
  • Invoke/BeginInvoke
  • WPF DispatcherObject