Binary Artist

The Jason Marshall Experience

Binary Artist

Jason Marshall
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Book Review: Domain-Driven Design: Tackling Complexity in the Heart of Software

Great book by Eric Evens discussing the domain driven approach to software design.

Finishing up this book...a book review will be comming soon...

 

"There are many things that make software development complex. But the heart of this complexity
is the essential intricacy of the problem domain itself. If you're trying to add automation to
complicated human enterprise, then your software cannot dodge this complexity—all it can do is
control it."

"The key to controlling complexity is a good domain model, a model that goes beyond a surface
vision of a domain by introducing an underlying structure, which gives the software developers the
leverage they need. A good domain model can be incredibly valuable, but it's not something that's
easy to make. Few people can do it well, and it's very hard to teach."


Tags: , ,
Categories: C# | LINQ | SQL Server | XNA | Domain Driven
Posted by Admin on Wednesday, May 14, 2008 6:00 AM
Permalink | Comments (4) | Post RSSRSS comment feed

SOA Using WCF proxy Inside SQL SSIS with a CAG'ed dll.

What does all that nerd lingo mean?

Basically I have some data I need to take out of the database and pass it to another server for processing in a service oriented architecture.
When this remote process is complete it will pass me back the results that I will save in the database.
The transport mechanism we will use is WCF or windows communication foundation.  To use this on the client side, which happens to be a database process. We will create a proxy class.
SQL SSIS is SQL Server's new DTS on steroids performance enhanced DTS. SSIS allows scripting in VB.net only (don't ask), and to use outside compiled dll's you have to register them in the Global Assembly Cache with a strong name, this is just a fancy way of making sure your dll's are unique.

This will happen on a timed interval.  Seams pretty simple huh?

In order to leverage windows communication foundation within SQL Server SSIS there are a number of things you have to do to make this happen. 


Build your client proxy WCF service model bindings from WCF service.

  1. Build an assembly that will wrap the logic for your WCF call.
  2. Sign the assembly with a strong name. (sn.exe or VS IDE).
  3. GAC your new assembly on the SQL box by copying into C:\WINDOWS\assembly.
  4. Merge your proxy app settings into DtsDebugHost.exe.config and DTExec.exe.config.
  5. Welding in custom assemblies in SSIS with configuration variables.

 

 

 Make sure your dll is GAC'ed and refernced in your SSIS script project.

 Make sure your dll is added to your Package.dtsx.

 


Tags: , ,
Categories: C# | GAC | SQL Server | SSIS | WCF
Posted by Admin on Wednesday, May 14, 2008 4:48 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Sharing WCF Collection Types between Service and Client

This particular feature will get ya ! if your not aware of it.

 

When using the SvcUtil.exe and specifying shared collectionTypes;

The expression in the collectionType switch for a shared collection is followed by a back quote (`) and a 1.
For generic types, you must specify the number of generic parameters with a back quote followed by the number of generic parameters.
Do not confuse the back quote (`) with the single quote (').

"c:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\SvcUtil"
      /language:cs
      /out:ServiceClient.cs 
      /namespace:*,ShareTypes.Client
      /noconfig
      /reference:..\ShareTypes.Common1\bin\Debug\ShareTypes.Common1.dll
      /reference:..\ShareTypes.Common2\bin\Debug\ShareTypes.Common2.dll
      /collectionType:ShareTypes.Common.SharedCollection1
      /collectionType:ShareTypes.Common.SharedCollection2`1
      net.tcp://localhost:9042/Service/mex

Great article here on this topic...

http://www.codeproject.com/KB/WCF/WCFCollectionTypeSharing.aspx


Posted by Admin on Thursday, May 08, 2008 8:27 AM
Permalink | Comments (3) | Post RSSRSS comment feed

The project location is not trusted

 

If you download zipped up Visual Studio project files and extract them with out Unblocking the zip file first, you will get an error.

Right click on the zip and Unblock -> press apply before extracting.

Speaking of untrusted zones ....


Posted by Admin on Thursday, May 08, 2008 3:03 AM
Permalink | Comments (3) | Post RSSRSS comment feed

Jump off the stack into a heap of OOP !

Coming soon...

learning Object Oriented Programming...

      OR

OOP ! I did it again !!! - A lesson in object cloning...

 

 

At the end you will be able to snatch the pebble from my hand...

 

You down with  OOP ! - Yeah You Know Me !!!


Tags:
Categories: C#
Posted by Admin on Tuesday, May 06, 2008 5:19 AM
Permalink | Comments (2) | Post RSSRSS comment feed
Free Hit Counters
page counter