Generics And LINQ

C# and Generics












  • Without generics consumer of ArraryList type can store any data inside of it






 Different approach to solve this problem without generics







 But this way there is code redundant









































 Calculate the performance between Collection and Generic Collection objects


































































 Generating Unbound Generics types from Reflection


 







Generating Open/Closed Generics types from Reflection
















 






































C# and LINQ




























 LINQ implementation without Extension method



















 LINQ with Extension methods

































Extension method and Lambdas



































Anonymous method with delegate in LINQ







Lambda code with LINQ









Lambdas with FUNC, ACTION and PREDICATE
















































































































LINQ to XML

image



image



image



image



image


image



Creating XML
image


image



Saving XML
image


image



Loading XML
image



Processing XML

image


image



Namespaces

image


image


image


image


image


image


image


image



Traversal

image


image



image



Standard Query Operators

image


image



Query Extensions
image


image



Modify XML node

image



Functional Construction

image



Create and Query Demo
image


image


image


image



Transformation

image


image


image


image



Validation
image


XPATH
image



image



LINQ to SQL Part I

image


Data Access Code
image


image


image


image



LINQ to SQL Overview

image


image



Mapping with POCO Approach – Code generation manually

image


POCO Demo
image

image


image


image


image



Mapping with Attributes
image



The Data Context
image



Demo of Data Context – Code generating with VS

image



image


image


image


image


image



Code Generating with SQLMetal.exe
image


image


image


image


image

 
 
Relationships

image



image


image


image



Lazy Linq to SQL

image


image


image


image



image


image


image



Data Load Options
image



Projections
image



Inheritance
image


image


image


image



Compiled Queries
image



Executing SQL
image



Stored procedure

image

image


image


image



LINQ Data Source
image


image


image


image


image


image


image


image



LINQ to SQL Part II


image


Modifying Data
image



Identity
image


image



Identity Map Pattern
image


image



Demo of Object Map
image


image


image


image



Entity Life Cycle
image


Updates
image


image


image

Note: SubmitChanges is all going to work as a whole or it's all going to roll back.


Change Tracking
image


image



image


image


Updating Associations
image

image



image

 
Managing Association in Demo
image


image


image


Inserts
image



Delete
image


Concurrency
image


image



image


image


image


image



Transactions
image



Detached Entities
image


image


image



The ADO.NET Entity Framework Part I


image


image


New ADO.NET
image


Entity Focus
image


image


image



Entity Data Model Designer
image


image


image


image


image


image


image



Model Browser
image


image



Using the Model
image


image


image



Mapping Details
image



image



EF Services
image



image


image



Object Context
image



LINQ to Entities

image



Query with LINQ
image


image


image


Query with Stored Procedure
image


image


image


image

image


image


Deffered Loading
image


 
Explicit Load option with LOAD Method

image

Note:  This is very expensive as it will issue multiple SQL commands to the DB in loop.


Eagar Loading with Include method

image

image



Inserts
image



Updates
image


Deletes
image



Entity Update Demo
image


image


image



L2S Versus EF
image


image




The ADO.NET Entity Framework Part 2

 
ORM and Entity Identity
image


image


image



Identity Maps
image


image

Note: Remember this identity map is maintained on a per context basis.


image



image



Entity Life Cycle
image


image


image


 
Changing Associations
image


image

(OR)

image



image


image


image


image



Transactions
image



Stored Procedure
image


image


image


Detached Entities
image


image


image

image


image



ADO.NET Data Services

image



Motivation
image


image


image




RESTful Services

image



LINQ and DATA Services

image


Demo of Data Services

image


image


image


image


image


image



URL Options
image


image



POCO Data sources

image



image



Primitive Client
image


Data Service Context Client
image


 
Demo of Data Service Context

image


image


image



Create, Update and Delete
image


image


image



Silverlight
image


image


image



image


Data Service Server

image

 

Client

image


image


image


Client call on Service operations

image


image












No comments:

Post a Comment