Yoni Goldberg

SharePoint Expert, Human Workflow specialist. WWW.GOLDBERGYONI.COM

Archive for the ‘C#’ Category

What is the best way to connect to custom database using BCS?

with 3 comments

There are times when you want to connect from SharePoint to some custom database (DB2, Oracle, Siebel, TeraData, your BPM suite, and so on.) using Business Connectivity Services (BCS), unfortunately out-of-the-box only SQL server is supported, in order to connect to other vendors some effort is required and few techniques (Creating web service, .Net connectivity assembly or crafting the BCS xml model file manually) can be employed. Each different technique carry some limitations and strengths, following is a comparison table which may ease your decision.

Read the rest of this entry »


Written by Yoni Goldberg

December 28, 2011 at 7:56 pm

Passing objects by reference/value in C#

with one comment

Many developers’ knowledge about passing object as parameters can be summed up with the following “In c# object parameters are always being passed by reference, if i will pass some object to another code, the same object will be in context”. While this knowledge is sufficient for most of the cases, it might cause bugs in a few. Lets take a look at some code snippet: Read the rest of this entry »

Written by Yoni Goldberg

March 23, 2010 at 1:06 pm

Posted in .NET, C#