Geeks With Blogs
Rui Machado Technologies and Information Systems October 2012 Entries
Nullable types and ?? operator C# [en-US]
Nullable types vs Non-nullable types While developing our C# projects its frequent the null comparison operation to avoid null exceptions. This simple operation is mainly coded using the "var x = null" code example inside an if clause. However not all types of variables are nullable, which means that setting a variable to null is not allowed in every cases, it depends on what kind of type are you defining. But what if there was an extension to your non-nullable type that would convert your variable ......

Posted On Sunday, October 7, 2012 10:00 PM

Consuming OData based Rest service in C# [en-US]
Nowadays comunication between applications is an active topic with daily usage and a large amount of pratical appliances. While developing an app in witch I had to consume an OData I found out that combining Linq with my code made this operation pretty easy.The algorithm to consume OData starts with adding a service reference to Visual Studio:After adding the service reference in wich you define the uri to the service, we start building our code.In your code the algorithm is the following:Define ......

Posted On Sunday, October 7, 2012 8:49 PM

BizTalk Mapping Challenge – Many To One Looping
BizTalk Server 2010 Mapping ChallengeMany to One LoopingImagine that you have a scenario where in the source schema you have a structure with three records with the same elements, however the first record is unbounded while the sencond and the third one as only one occurance. Now you need to map this three records into one single record in the destination schema.Example:Source Schema Records:- Vendor (Unbounded)- Client (Occurs once)- Owner (Occurs once)Destination Schema:- Participants (unbounded)Check ......

Posted On Thursday, October 4, 2012 4:51 AM

BizTalk Pipeline Custom Component Message Unzippper
Introduction This Custom Pipeline Component for BizTalk Server 2010, receives a compressed message, unzips it and sends one message per each file that the compressed file as in it. Imagine the following scenario: you have ten files that you want to send to some destination, instead of sending ten messages (one per file) you can easily send one compressed file (with all the ten files in it), taking as only precaution the insurance that the destination system as this component in its receive pipeline. ......

Posted On Thursday, October 4, 2012 4:46 AM

Copyright © ruimachado | Powered by: GeeksWithBlogs.net