Here is another IoC example using Spring.Net similar to the Movie Finder example taken from Martin Fowler’s article.
This example return a list of all employees that match the specified department and demonstrates how the Spring.Net IoC container can be used to supply an appropriate
IEmployeeService implementation to an arbitrary EmployeeService instance.
Create new console application project called EmployeeFinder, and add the following references to use in this example.
Tags:
.net,
aop,
C#,
context,
DI,
Enterprise,
framework,
IoC nunit,
Microsoft,
nhibernate,
Spring,
Spring.net,
visual studio Posted under
.net,
C#,
Spring.Net by De' on 10.22.2008 |
No Comments
Spring.Net is an application framework that provides comprehensive infrastructural support for developing enterprise .Net application (taken from Spring.Net documentation). Spring.Net is based from Java version of Spring framework that widely known as very useful application framework to develop an enterprise application using Java.
Spring.Net contain a lot of feature and organized into modules shown bellow.
Spring.Core module [...]
Tags:
.net,
aop,
C#,
context,
DI,
Enterprise,
framework,
IoC nunit,
Microsoft,
nhibernate,
Spring,
Spring.net,
visual studio Posted under
.net,
C#,
Spring.Net by De' on 09.30.2008 |
No Comments
And now this is the last part of the tutorial. In this section I would like to show you how to put your Validation code into the windows form application. When you finish to combine your validation code and your windows form, the windows form will perform automatic validation when user type on your input [...]
Here i show you another example to use the validation application block
I’ll explain a little bit detail bellow the example
Microsoft Enterprise Library provide a lot of useful common library to build an enterprise application. One of it’s section is about validating the input from users. The Validation Application Block, that’s what they call it provide a set of library of classes to validate .NET framework data types. The validation allow you to validate an [...]