160 likes | 385 Views
Introduction to CSLA.Net. Every developer needs an easy button. Keith Elder Microsoft MVP Blog: http://keithelder.net/blog/ Quicken Loans – http://www.quickenloans.com. Agenda. Why CSLA.Net ? What is CSLA.Net ? Out of Order Logical and Physical Architecture Scalable Component
E N D
Introduction to CSLA.Net • Every developer needs an easy button. • Keith Elder • Microsoft MVP • Blog: http://keithelder.net/blog/ • Quicken Loans – http://www.quickenloans.com
Agenda • Why CSLA.Net? • What is CSLA.Net? • Out of Order • Logical and Physical Architecture • Scalable • Component • Features as a framework • CSLA Principles • CSLA In Action • Code generation for CSLA • Validation • Binding
A business object framework. C Component S Scalable L Logical A Architecture
Logical And Physical Architecture Three logical units that make up an application. User Interface Objects Objects Database Database Interaction
Logical And Physical Architecture User Interface Object Web Deployment Single Tier (Fat Client / Mobile) Three Tiered Deployment Redeploy Application Objects Database Database Interaction App Server
Scalable User Interface Objects Objects Database Interaction Database Interaction Objects Objects Database Interaction Database Interaction App Server s Database Cluster
Generating the Component Component Properties • LoanAmount • State • FICO • LoanType • Etc… Security • Viewable By Banker • Viewable By Director • Employee Loan requiresspecial token in operations Database Interaction Data Portal Methods • Insert • Update • Select • Delete Behavior Driven Development Focus on Business Requirements Validation • LoanAmount Is Required • State Is Required • FICO is Required • LoanType Is Required Business Rules • FICO > 620 for LoanType • LoanType in this State • LoanAmount > 100,000 Methods and Delegates • DoesClientQualify() • LoanAmountChanged • CreditScoreChanged Loan Business Object
Loan Object Hierarchy Red – CSLA Type Blue – Class Green - Property Let’s Go From Picture to Code