Thursday, May 27, 2010

Using Repository and Unit of Work patterns with Entity Framework 4.0

http://blogs.msdn.com/b/adonet/archive/2009/06/16/using-repository-and-unit-of-work-patterns-with-entity-framework-4-0.aspx
(...)
If you have been watching this blog, you know that I have been discussing the various aspects of POCO capabilities we added to Entity Framework 4.0. POCO support makes it possible to do persistence ignorance with Entity Framework in a way that was never possible with Entity Framework 3.5.

If you missed the series on POCO, I’ve listed them here for your convenience. It might be a good idea to quickly check these out.

POCO in Entity Framework : Part 1 – The Experience

POCO in Entity Framework : Part 2 – Complex Types, Deferred Loading and Explicit Loading

POCO in Entity Framework : Part 3 – Change Tracking with POCO

In this post, I’d like to look at how we might be able to take our example a bit further and use some of the common patterns such as Repository and Unit Of Work so that we can implement persistence specific concerns in our example.
(...)

Tuesday, May 18, 2010

Separation of Concerns with Policy Injection Application Block

http://blogs.msdn.com/sunilkum/archive/2008/07/15/separation-of-concerns-with-policy-injections.aspx

(...)
Introduction
Cross-Cutting Concerns: In computer science vocabulary, cross-cutting concerns are aspects of a program which affect (crosscut) other concerns. These concerns often cannot be cleanly decomposed from the rest of the system in both the design and implementation, and result in either scattering or tangling of the program, or both.
(...)

Tripping over logs: A story of Unity - Part 1

http://www.sadev.co.za/content/tripping-over-logs-story-unity-part-1

AOP in .NET with Unity Interception Model

http://mint.litemedia.se/2009/10/30/aop-in-net-with-unity-interception-model/

Registering Policy Injection Components

http://msdn.microsoft.com/en-us/library/ff660881(PandP.20).aspx

Unity Interception Extension and RemotingPolicyInjector Screencast - Unity Tutorials

http://www.pnpguidance.net/screencast/UnityInterceptionExtensionRemotingPolicyInjectorScreencastUnityTutorials.aspx

Monday, May 17, 2010

Débuter avec Unity

http://wilfriedwoivre.wordpress.com/2010/03/05/dbuter-avec-unity/
(...)
Unity est un concept de développement, disponible dans les Enterprise Library de Microsoft, en version 4.1 lors de l’écriture de cet article. Unity sert à effectuer de l’IoC (Inversion de contrôle) sur les composants que l’on souhaite.
(...)

Friday, May 14, 2010

Inject Some Life into Your Applications—Getting to Know the Unity Application Block

http://msdn.microsoft.com/en-us/library/ff650806.aspx


IoC and the Unity Application Block - Going Deeper

http://weblogs.asp.net/podwysocki/archive/2008/02/22/ioc-and-the-unity-application-block-going-deeper.aspx

(...)
Update: Fixed code changed from CTP and More in the series:
IoC and Unity - The Basics and Interception
IoC and the Unity Application Block Once Again
IoC Containers, Unity and ObjectBuilder2 - The Saga Continues
IoC Container, Unity and Breaking Changes Galore
(...)

Unity Dependency Injection IoC Screencast

http://www.pnpguidance.net/Screencast/UnityDependencyInjectionIoCScreencast.aspx
(...)
Unity IoC Screencast
The Unity Dependency Injection / IoC Container is new from Microsoft Patterns and Practices. It will come in both a stand-alone version and bundled within Enterprise Library 4.0 as an alternate configuration mechanism for the application blocks. This screencast shows several common usages of Unity as well as how to use Unity with both the ASP.NET MVC Framework and with ASP.NET Webforms using Model-View-Presenter.

The screencast highlights:

ASP.NET MVC Framework.
ASP.NET Model View Presenter Pattern.
UnityContainer Resolve and BuildUp Methods
UnityContainer RegisterType and RegisterInstance Methods
UnityConfigurationSection for Web.config and App.config
(...)

Automatic Factories in Unity 2 - Unity 2 Tutorials and Samples

http://www.davidhayden.me/2010/01/automatic-factories-in-unity-2-unity-2-tutorials-and-samples.html
(...)
In Unity 2 there is the concept of Automatic Factories to allow classes or services to defer instantiation of their dependencies to the last possible moment. This is particularly useful when the dependency is expensive to create and is not always used by the service. Think of it as lazy loading of dependencies just like we have lazy loading in O/R Mappers.

I mentioned similar functionality in Autofac in the following tutorial: Auto-Generated Factories in Autofac for Lazy Instantiation - LazyDependencyModule. I recommend you read that tutorial as it talks more about the concepts, etc., whereas here I will only mention a few comments and show you an example. Autofac also goes a bit further than Unity 2 by supporting Lazy and Lazy when using Autofac with the .NET Framework 4.
(...)

Microsoft Unity 2.0 – April 2010

http://msdn.microsoft.com/en-us/library/ff663144.aspx
(...)
What Does Unity Do? This topic provides a brief overview that will help you to understand what Unity can do, and explains some of the concepts and features it incorporates. It also provides a simple example of the way that you can write code to use Unity.
When Should I Use Unity? This topic will help you to decide if Unity is suitable for your requirements. It explains the benefits of using Unity, and any alternative techniques you may consider. It also provides details of any limitations of Unity that may affect your decision to use it.
About This Release of Unity. This topic contains information about the changes in this release, the target audience and system requirements, migration and side-by-side execution, and links to other Microsoft patterns & practices resources.
Configuring Unity. This topic describes how you can populate a Unity container with the type registrations, mappings, extensions, and other information required by your application.
Using Unity in Applications. This topic explains how to use Unity in your own applications. It explains how to add Unity to your application, how to resolve objects, and how to take advantage of the many other capabilities of Unity.
Design of Unity. This topic explains the decisions that went into designing Unity and the rationale behind those decisions.
Extending and Modifying Unity. This topic explains how to extend Unity and how to modify the source code.
Deployment and Operations. This topic explains how to deploy and update the Unity assemblies and use the instrumentation exposed by Unity.
(...)

Dependency Inversion Principle

http://blogs.developpeur.org/tja/archive/2010/02/10/design-patterns-partie-2-dip-dependency-inversion-principle.aspx
(...)
What Does Unity Do? This topic provides a brief overview that will help you to understand what Unity can do, and explains some of the concepts and features it incorporates. It also provides a simple example of the way that you can write code to use Unity.
When Should I Use Unity? This topic will help you to decide if Unity is suitable for your requirements. It explains the benefits of using Unity, and any alternative techniques you may consider. It also provides details of any limitations of Unity that may affect your decision to use it.
About This Release of Unity. This topic contains information about the changes in this release, the target audience and system requirements, migration and side-by-side execution, and links to other Microsoft patterns & practices resources.
Configuring Unity. This topic describes how you can populate a Unity container with the type registrations, mappings, extensions, and other information required by your application.
Using Unity in Applications. This topic explains how to use Unity in your own applications. It explains how to add Unity to your application, how to resolve objects, and how to take advantage of the many other capabilities of Unity.
Design of Unity. This topic explains the decisions that went into designing Unity and the rationale behind those decisions.
Extending and Modifying Unity. This topic explains how to extend Unity and how to modify the source code.
Deployment and Operations. This topic explains how to deploy and update the Unity assemblies and use the instrumentation exposed by Unity.
(...)

Enterprise Library 4.0 Logging Application Block and Unity IoC Screencast

http://www.pnpguidance.net/Post/EnterpriseLibrary4LoggingApplicationBlockUnityIoCScreencast.aspx
(...)
Enterprise Library 4.0 Logging Application Block with Unity IoC Integration Screencast
A new screencast showing off the use of the Enterprise Library 4.0 Logging Application Block using the EnterpriseLibraryCoreExtension and LoggingBlockExtension that provide Unity IoC Integration. It shows one how to register the Logging Application Block LogWriter Class and how Unity injects the LogWriter Class into your own custom classes.

The screencast highlights:

Enterprise Library 4.0 Logging Application Block.
Unity IoC.
EnterpriseLibraryCoreExtension.
LoggingBlockExtension.
UnityContainer
Injecting LogWriter Classes into Custom Classes.
(...)

Thursday, May 13, 2010

Using Unity Application Block – from basics to generics

http://weblogs.asp.net/nmarun/archive/2010/05/05/using-unity-application-block-from-basics-to-generics.aspx
(...)
Part 1: The very basics – Begin using Unity (code here)

Part 2: Registering other types and resolving them (code here)

Part 3: Lifetime Management (code here)

Part 4: Constructor and Property or Setter Injection (code here)

Part 5: Arrays (code here)

Part 6: Generics (code here)
(...)

Demystifions Unity Application Block

http://marc-chouteau.blogspot.com/2009/01/demistifions-unity-application-block.html
(...)
Unity est un conteneur léger qui permet de réaliser de l’inversion de controle au niveau de l’architecture des applications

La dernière version téléchargeable est la version 1.2 que l’on peut trouver ici : http://www.codeplex.com/unity, c’est un bloc d’application de la libraire d’entreprise de Microsoft V4.1 et peut etre téléchargé individuellement.
(...)

Unity 2.0 download from MSDN

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=2d24f179-e0a6-49d7-89c4-5b67d939f91b

IoC and Unity - The Basics and Interception

http://weblogs.asp.net/podwysocki/archive/2008/03/25/ioc-and-unity-the-basics-and-interception.aspx

Tame Your Software Dependencies for More Flexible Apps

http://msdn.microsoft.com/en-ca/magazine/cc337885.aspx
(...)
The Inner Dependency Problem
Dependency Inversion
Dependency Injection
Containers
Full-Fledged IoC Containers
Lifetime Management
Auto-Wiring Dependencies
Loosen Up for a Change
(...)

A First Look at Unity 2.0

http://dotnetslackers.com/articles/net/A-First-Look-at-Unity-2-0.aspx

AOP and Unity - InterfaceInterceptor Example - Unity Dependency Injection Tutorials

http://www.pnpguidance.net/Post/AOPUnityInterfaceInterceptorExampleUnityDependencyInjectionTutorials.aspx

Application Design Concepts with Unity

http://msdn.microsoft.com/en-us/library/ff660926(v=PandP.20).aspx

What Does Unity Do?

http://msdn.microsoft.com/en-us/library/ff660864(PandP.20).aspx

Generic Decorator Chains Example using Unity Dependency Injection Container

http://www.pnpguidance.net/post/GenericDecoratorChainsExampleUnityDependencyInjectionContainer.aspx

IMPLÉMENTER FACILEMENT INOTIFYPROPERTYCHANGED

http://www.csharpfr.com/codes/IMPLEMENTER-FACILEMENT-INOTIFYPROPERTYCHANGED_44333.aspx

Castle Dynamic Proxy tutorial

http://kozmic.pl/archive/2009/04/27/castle-dynamic-proxy-tutorial.aspx

Introduction to the Policy Injection Application Block

Python use decorators to pre and post actions when calling a function.
Here is a way to do it in .Net
http://msdn.microsoft.com/en-us/library/ff648328(v=PandP.10).aspx

Another library : Castle Project
http://www.castleproject.org/dynamicproxy/index.html

Monday, May 3, 2010

Entity Framework Modeling: Table Per Type Inheritance

http://www.robbagby.com/entity-framework/entity-framework-modeling-table-per-type-inheritance/

ENtity Framework LABS four parts

http://benoitlaut.net/CategoryView,category,EntityFramework40.aspx

Entity Framework Quickstart Quick Start

http://vbcity.com/blogs/xtab/archive/2010/01/11/entity-framework-quickstart-quick-start.aspx

Visual Studio 2010 and .NET Framework 4 Training Kit

http://www.microsoft.com/downloads/details.aspx?familyid=752CB725-969B-4732-A383-ED5740F02E93&displaylang=en

ADO.NET Entity Framework - VIDEOS

A must see .
Also videos from Mathieu Mezil...
http://msdn.microsoft.com/en-us/data/videos.aspx

Hands-on-Lab: Using the Entity Framework in .NET 4 and Visual Studio 2010

http://code.msdn.microsoft.com/EntityFxHOLPDC09/Release/ProjectReleases.aspx?ReleaseId=3494

CRUD Operatons - Entity Framework

http://www.dotnetfunda.com/articles/article504-crud-operations-using-adonet-entity-framework-.aspx

http://pmusso.developpez.com/tutoriels/dotnet/entity-framework/introduction/

Entity Framework 4.0: How to use POCOs

http://weblogs.asp.net/gunnarpeipman/archive/2009/07/11/entity-framework-4-0-how-to-use-pocos.aspx

Entity Framework : personnaliser le modèle d’entités

http://www.dotnet-france.com/Documents/ADOLinq/Entity%20Framework%20-%20personnaliser%20le%20mod%C3%A8le%20d%E2%80%99entit%C3%A9s.pdf

Framework Entity – Nouveautés apportées par le Framework .NET 4.0

PDF French -- DOTNET-France

http://www.dotnet-france.com/Documents/ADOLinq/Nouveaut%C3%A9s%20apport%C3%A9es%20par%20le%20Framework%20.NET%204.0.pdf

Entity Framework POCO (EF4): A Simple Mapping

http://elegantcode.com/2009/12/15/entity-framework-poco-ef4-a-simple-mapping/

Saturday, April 17, 2010

Getting Started with Silverlight development

http://timheuer.com/blog/articles/getting-started-with-silverlight-development.aspx

If Carlsberg did MVVM Frameworks

http://www.codeproject.com/KB/WPF/Cinch.aspx

Silverlight / MEF - Plugins

 

http://blogs.developpeur.org/tom/archive/2010/03/23/silverlight-mef-d-velopper-un-syst-me-de-plugins-pour-une-application-silverlight-avec-le-microsoft-extensibility-framework.aspx

Multiple Desktops on Win7

http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx

Silverlight 4 COM+

http://justinangel.net/CuttingEdgeSilverlight4ComFeatures#BlogPost=CuttingEdgeSilverlight4ComFeatures

System.Data.SQLite

http://sqlite.phxsoftware.com/

object database for .NET, Mono and Silverlight

http://siaqodb.com/

Monday, March 8, 2010

Apophysis - Dragon Eggs

Simply Wonderful
Thank you very much Elizabeth for this marvelous jewel


{---------------------------------------}
{ Dragon Egg - Random Batch }
{ By Elizabeth Tomchek (etomchek) }
{ 2-5-07 }
{ Documentation as of yet unavailable }
{ --------------------------------------}

fileName := GetSaveFileName;
if CurrentFile = fileName then exit;
DeleteFile(fileName);
for j := 0 to FileCount - 1 do
begin
LoadFlame(j);
ShowStatus('Processing ' + IntToStr(j + 1) + ' of ' + IntToSTr(FileCount));

Clear;
Pivot.mode := 1;
AddTransform;
with Transform do
begin
Variation[V_LINEAR] := 0;
Variation[V_BLUR] := 0.95;
Rotate(270);
Color := 0;
end;

AddTransform;
with Transform do
begin
Variation[V_LINEAR] := (random*0.5)+0.5;
Variation[V_SPHERICAL] := 0.5;
end;

with Transform do
begin
up := (((trunc(random*3)-1)*random)+random*0.5)*(random+1);
over := (((trunc(random*3)-1)*random)+random*0.5)*(random+1);
Translate(up,over);
Rotate(random*360);
Color := 0.5;
end;

AddTransform;
with Transform do
begin
Variation[V_LINEAR] := (random*0.25)+0.75;
Variation[V_SPHERICAL] := 0.25;
end;

with Transform do
begin
up := (((trunc(random*3)-1)*random)+random*0.5)*(random+1);
over := (((trunc(random*3)-1)*random)+random*0.5)*(random+1);
Translate(up,over);
Rotate(random*360);
Color := 1;
end;


// To set the final transform:
SetActiveTransform(transforms);
with Transform do
begin
for i := 0 to NVARS - 1 do
begin
Variation[i] := 0;
end;
a := 1;
b := 0;
c := 0;
d := 1;
e := 0;
f := 0;
end;
Transform.Variation[V_SPHERICAL] := 1;

Flame.FinalXformEnabled := true;


ResetLocation := True;
UpdateFlame := True;
// calculatecolors;
Flame.Name := 'DE-' + Flame.Name;
CalculateBounds;
SaveFlame(fileName);
end;
ListFile(fileName);
UpdateFlame := False;

Apophysis Tutorials

http://stacey-whaley-apophysis.wikispaces.com/Tutorials

Les tests unitaires en pratique par Patrick Smacchia

http://www.dotnetguru.org/articles/dossiers/testunitaires/UnitTest.htm

Creating your first NUnit test

http://www.dijksterhuis.org/setting-up-nunit-for-c-unit-testing-with-visual-studio-c-express-2008/

Unit Test - Testing with NUnit Framework

http://www.15seconds.com/issue/040922.htm

F# For C# Programmers: Programming In the Small

http://srtsolutions.com/blogs/chrismarinos/archive/2009/07/31/f-for-c-programmers-programming-in-the-small.aspx

Introducing Elevate

...That’s where Elevate comes in. Elevate is a Boost-like library for .NET. Our goal at SRT Solutions is to capture the things that we think are missing from the BCL and put them in Elevate so that we can share them between our project groups and the rest of the world. By devoting some of our weekly learning time to add these common bits of code to Elevate, we can save ourselves, our clients, and hopefully other .NET developers time and money....
http://srtsolutions.com/blogs/chrismarinos/archive/2009/08/19/introducing-elevate.aspx