mattdlong

Stories kicked by mattdlong

Working towards decoupled code: Part 3 Ioc Containers(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 1 year, 6 months ago

In my previous two posts I tackled a couple of methods which can be used to work towards decoupled code, the Service Locator and Dependency Injection. I also spoke about the limitations of a traditional service locator in that all objects that are dependent on other objects will need to become dependent on the service locator in order to decouple themselves from those dependencies. This is not ideal when we are trying to work towards decoupled code, but it was a good start. read more...

add a comment |category: |Views: 4

tags: another

Working towards decoupled code: Part 2 Dependency Injection.(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 1 year, 6 months ago

In my previous post I spoke about what I consider to be coupled code and how it effects the maintainability and testability of a code base. I also spoke about one method of reducing code coupling in an effort to achieve our goals of maintanability and testability, the Service Locator. read more...

add a comment |category: |Views: 1

tags: another

1 Working towards decoupled code: Part 1 The Service Locator. (www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 1 year, 6 months ago

This is the first of a three part series in which I will attempt to explain three methods I’ve used in the past to help me to achieve loosely coupled code. read more...

add a comment |category: |Views: 6

tags: another

More Business Object Abstraction Fun: Abstracting basic CRUD operation(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 1 month ago

In my previous post I spoke about how we had gone about abstracting the injection of Repositories into our business objects in the project I am currently working on. What we went on to find was that once we had abstracted the repository, and the responsibility of injecting the repository into an EntityBase class, we were then able to identify more behavior that was common among our objects that we were able to abstract. read more...

add a comment |category: |Views: 19

tags: another

The Big Business Object Repository Injection Abstraction(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 1 month ago

I’m currently working on a project where our business objects pretty much marry off one for one with our repositories, ie. if we had a Business object named Customer, we would always assume that its persistence mechanism will be an object named something like CustomerRepository, or more accurately an object implementing an interface named ICustomerRepository. read more...

add a comment |category: |Views: 15

tags: another

Reduce mundane code and use your time to focus on more interesting pro(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 2 months ago

Automapper is an open source object to object property mapping library which has not only saved me incredible amounts of time, which I‘ve been able better spend solving more interesting problems, but it has also greatly reduced the amount of mundane code in my code base. read more...

add a comment |category: |Views: 6

tags: another

First look at C# .Net 4.0: Optional and Named Parameters(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 3 months ago

With the Release Candidate of Visual Studio 2010 released this week and an official release slated for April, I thought I’d take some time and explore some of the new features we’ll be working with in C# 4.0. So over the course of a couple of weeks I expect to be posting my thoughts and findings on each, starting with Optional and Named parameters. read more...

add a comment |category: |Views: 19

tags: another

Mapping Many to Many relationships using Fluent NHibernate(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 3 months ago

In my previous posts I went over the basics of mapping objects to traditional relational database tables and mapping relationships using Fluent NHibernate. One relationship I neglected to discuss in the previous post was a Many to Many relationship and how it is mapped using Fluent NHibernate, that is going to be the topic of today’s post. read more...

2 comments |category: |Views: 759

tags: another

Mapping Relationships using Fluent nHibernate(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 3 months ago

In my last post I went over the basics of mapping properties on a POCO object to fields on a database table. If you haven’t already check it out here. In this post I’m going to focus on mapping relationships, that is, what if we wanted our objects to contain concrete references to the objects with which they have relationships, rather than just foreign key properties. read more...

add a comment |category: |Views: 34

tags: another

The Basics of Mapping Objects to a Database using Fluent nHibernate(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 3 months ago

In this post I’ll be taking a look at how we can set up mappings between regular .Net objects and database tables using Fluent nHibernate. read more...

add a comment |category: |Views: 6

tags: another

Configuring nHibernate with Oracle and ODP.Net(www.mattlong.com.au)

submitted by mattdlongmattdlong(90) 2 years, 3 months ago

I’ve been doing a bit of proof of concept work recently with some ORMs and the Oracle databases of my employer. For various reasons we wanted to get away from our traditional persistence mechanism, stored procedures, the enterprise library’s data access block and ODP.net. read more...

add a comment |category: |Views: 105

tags: another