http://sankarsan.myopenid.com/
Name: http://sankarsan.myopenid.com/
Score: 842.11
Last Seen: 472 days, 15 hours, 5 minutes ago
Member Since: 6 February, 2009
DotNetShoutout
atom rss
2
Shouts

Inside C# Extension Methods « Sankarsan’s Journal

posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 604 days, 19 hours, 58 minutes ago
Monday, October 24, 2011 2:23:52 AM GMT
C# Extension methods were introduced in C# 3.0. They provide a mechanism to extend(not the inheritance way) the functionality of an existing class by attaching methods to it.An extension method needs to be developed in a static class as a static method as shown below: public static class MyExtensions { public static Int32 AddExt(this Int32 i, Int32 j) { return i + j; } } We can invoke it as 10.AddExt(12) In this post we will look at what’s happening inside... (more)
category: How To | clicked: 8 | comment | | source: sankarsan.wordpress.com
tags: Extension Methods, C#
2
Shouts

Groovy Like ConfigSlurper in C# using ExpandoObject « Sankarsan’s Journal

published 667 days, 17 hours, 58 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 668 days, 4 hours, 5 minutes ago
Monday, August 22, 2011 4:24:46 AM GMT Sunday, August 21, 2011 6:16:55 PM GMT
In GroovyConfigSlurper is a utility class that is used for reading configuration files written in form of Groovy scripts.Let’s consider the following properties file. We will use a Groovy script to read from this properties file as shown in the snippet below: package com.test import java.util.Properties class Start { static main(args) { def p = new Properties() new File("test.properties").withInputStream { stream -> p.load(stream) } println "gfv3.admin.... (more)
category: How To | clicked: 14 | comment | | source: sankarsan.wordpress.com
tags: dynamic, C# 4.0, Expando, Groovy
4
Shouts

Entity Framework 4.1 Annotations–Part 1 « Sankarsan’s Journal

posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 745 days, 15 hours, 41 minutes ago
Sunday, June 05, 2011 6:41:02 AM GMT
Entity Framework 4.1 has introduced the Code First Approach with it’s Fluent API and Annotations.In this series of posts we will focus on the Annotations part of it and how it can be used to build the domain model and map it to the database. We will use the standard School data model to explain most of the stuff and take different examples in some of the special cases.The table diagram is shown below: We will start with the very basics, i.e. I have POCO and I want to map it to a database table.I need... (more)
category: How To | clicked: 17 | comment | | source: sankarsan.wordpress.com
tags: Annotations, EF 4.1
3
Shouts

Sorting Collections in C# « Sankarsan’s Journal

published 772 days, 2 hours, 50 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 774 days, 35 minutes ago
Monday, May 09, 2011 7:32:46 PM GMT Saturday, May 07, 2011 9:47:09 PM GMT
In this post we will discuss about different techniques of sorting collections of objects in C# using the functions provided by the base class libraries.This is something very common and there different types of provisions in .NET BCL to achieve the same.We will try to discuss the advantages and limitations of each of these approaches. (more)
category: How To | clicked: 2 | comment | | source: sankarsan.wordpress.com
tags: .NET, IComparable, C#, Comparison, IComparer
3
Shouts

TPL DataFlow–BufferBlock & Load Balancing - Coding N Design

published 813 days, 7 hours, 29 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 815 days, 3 hours, 17 minutes ago
Tuesday, March 29, 2011 2:53:38 PM GMT Sunday, March 27, 2011 7:04:51 PM GMT
Let’s consider a situation where we have a data source which is churning out data like a continuous stream and passing it to some data processing units (like a method) as shown in the figure below.The processing units are load balanced i.e. if one unit is still busy processing then the next element coming out of the data source will be handed over to the next pr... (more)
category: How To | clicked: 15 | comment | | source: codingndesign.com
tags: Task Parallel Libray, TPL DataFlow, NET 4.0
4
Shouts

App Fabric–Walkthrough Of A Simple Client Code « Sankarsan’s Journal

published 841 days, 9 hours, 29 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 843 days, 6 hours, 36 minutes ago
Tuesday, March 01, 2011 12:53:37 PM GMT Sunday, February 27, 2011 3:46:08 PM GMT
Windows Server AppFabric has been released for quite sometime now.I did not had much time to look into it then.Since last week I have started playing around with the App Fabric Caching.In this post we will build a small App Fabric Cache client and try to understand how it works. (more)
category: How To | clicked: 2 | comment | | source: sankarsan.wordpress.com
tags: Windows App Fabric Cache
3
Shouts

Task Parallel Library in .NET 4.0 – Part 3 - Coding N Design

published 941 days, 3 hours ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 941 days, 8 hours, 34 minutes ago
Sunday, November 21, 2010 7:22:41 PM GMT Sunday, November 21, 2010 1:48:44 PM GMT
In my last post we had completed our discussion on the nested and child tasks i.e what happens when another task is created while execution of the other.In this post we will take a look at how we can cancel a task.The cancellation model in .NET 4.0 is based on a lightweight data structure called cancellation token.The object initiating the operation(s) can p... (more)
category: How To | clicked: 0 | comment | | source: codingndesign.com
tags: Task Cancellation, .Net 4.0, Task, Parallel Computing
4
Shouts

Task Parallel Library in .NET 4.0 – Part 2 - Coding N Design

published 947 days, 10 hours, 3 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 948 days, 11 hours, 28 minutes ago
Monday, November 15, 2010 12:19:44 PM GMT Sunday, November 14, 2010 10:53:54 AM GMT
In my last post I had started a discussion on Task Parallel Library introduced as part of .NET 4.0.In this post also, we will continue with same.We will take a look at what happens when a task creates one more task during it’s execution i.e. what are nested and child tasks and how they are handled. (more)
category: How To | clicked: 2 | comment | | source: codingndesign.com
tags: Task Parallel Library, .Net 4.0, Nested Child Tasks
6
Shouts

Task Parallel Library in .NET 4.0 – Part 1 - Coding N Design

published 947 days, 10 hours, 3 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 949 days, 17 hours, 1 minute ago
Monday, November 15, 2010 12:19:44 PM GMT Saturday, November 13, 2010 5:21:11 AM GMT
In one of my earlier posts about the Parallel Programming Extensions in .NET 4.0 I had briefly mentioned about the Task Parallel Library one of the most critical components of the Parallel Extensions.It primarily consists of the APIs provided under System.Threading& Sytem.Threading.Tasks.It uses the CLR Thread Pool behind the scenes and some  sophisticated algor... (more)
category: How To | clicked: 1 | comment | | source: codingndesign.com
tags: Task Parallel Library, Parallel Programming, .Net 4.0
6
Shouts

Asynchronous Programming in .NET – Part 2 - Coding N Design

published 947 days, 10 hours, 3 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 949 days, 17 hours, 2 minutes ago
Monday, November 15, 2010 12:19:44 PM GMT Saturday, November 13, 2010 5:20:35 AM GMT
In the last post we have discussed about the Asynchronous Programming Model(APM) and it’s different implementations.In this post we will discuss about the Event Based Asynchronous Pattern in .NET Framework which was introduced in .NET 2.0.This pattern makes use of the event/delegate model of the .NET Framework and is particularly useful for GUI based components.... (more)
category: How To | clicked: 0 | comment | | source: codingndesign.com
tags: .NET, Threading, Asynchronous
5
Shouts

Asynchronous Programming in .NET – Part 1 - Coding N Design

published 947 days, 10 hours, 3 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 949 days, 17 hours, 2 minutes ago
Monday, November 15, 2010 12:19:44 PM GMT Saturday, November 13, 2010 5:19:55 AM GMT
.NET Framework allows us to execute some methods asynchronously without blocking the calling program.These asynchronous methods are executed on different threads thus allowing the calling program to do it’s own job after the other method has been invoked.In this kind of asynchronous programming scenarios,in general we expect the following features to be implemen... (more)
category: How To | clicked: 0 | comment | | source: codingndesign.com
tags: .NET, Threading, Asynchronous
2
Shouts

Entity Framework CTP 4.0 – Many To Many Mappings « Sankarsan’s Journal

published 970 days, 55 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 970 days, 9 hours, 34 minutes ago
Saturday, October 23, 2010 9:27:43 PM GMT Saturday, October 23, 2010 12:48:19 PM GMT
In my last post I had discussed about entity relationships,navigational properties and how we can fetch data from database into the entities.In this post we will examine the many to many relationships and how this can be modeled using POCO and the CTP 4.0 Code First Approach.We will consider three tables Person,Club and ClubMember where each Person can belong to multiple Clubs as shown below: (more)
category: How To | clicked: 1 | comment | | source: sankarsan.wordpress.com
tags: CTP 4.0, entity framework 4.0
2
Shouts

Entity Framework CTP 4.0 – Data Fetching « Sankarsan’s Journal

published 976 days, 7 hours, 38 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 976 days, 12 hours, 13 minutes ago
Sunday, October 17, 2010 2:44:08 PM GMT Sunday, October 17, 2010 10:09:22 AM GMT
In the last two posts I have discussed about Entity Framework CTP 4.0 Code First Approach and Database Initialization.Now we will take a look at how to define relationships and navigational properties between the Entities and how data fetching is impacted by these. (more)
category: How To | clicked: 0 | comment | | source: sankarsan.wordpress.com
tags: CTP 4.0, entity framework 4.0
6
Shouts

Reactive Extensions in .NET – ConnectableObservable - Coding N Design

published 976 days, 7 hours, 38 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 978 days, 6 hours, 24 minutes ago
Sunday, October 17, 2010 2:44:08 PM GMT Friday, October 15, 2010 3:58:35 PM GMT
In my last post on Reactive Extensions in .NET I had discussed about Hot and Cold Observable and their behavior.In this post we will discuss on how a cold observable can be converted to a hot one using the System.Collections.Generic.IConnectableObservable. (more)
category: How To | clicked: 4 | comment | | source: codingndesign.com
tags: ConnectableObservable, Reactive Extensions
3
Shouts

Entity Framework CTP 4.0 – Database Initialization « Sankarsan’s Journal

published 979 days, 7 hours, 45 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 979 days, 19 hours, 24 minutes ago
Thursday, October 14, 2010 2:37:39 PM GMT Thursday, October 14, 2010 2:58:18 AM GMT
In the last post we discussed about the basic steps involved in working with the new Entity Framework CTP 4.0 Code First Approach.Now we will take a look at each of these steps in a bit more detail.We will start with database initialization. (more)
category: How To | clicked: 0 | comment | | source: sankarsan.wordpress.com
tags: CTP 4.0, entity framework 4.0
2
Shouts

Entity Framework CTP 4.0 – Code First Approach « Sankarsan’s Journal

posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 990 days, 2 hours, 1 minute ago
Sunday, October 03, 2010 8:21:09 PM GMT
It has been a month or two  that Entity Framework CTP 4.0 bits have released.I had read through the feature list back then but could not manage time to take a detailed look until this weekend.I always felt that Entity Framework’s approach towards handling of configuration(object relational mappings) and plain .NET objects was bit restrictive and cumbersome respectively.The mappings are needed to be stored in Entity Data Model(.edmx) files which are nothing but xml files with object to relational store ma... (more)
category: How To | clicked: 1 | comment | | source: sankarsan.wordpress.com
tags: CTP 4.0, entity framework 4.0
5
Shouts

Reactive Extensions in .NET – Hot & Cold Observable - Coding N Design

published 996 days, 10 hours, 32 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 997 days, 13 hours, 40 minutes ago
Monday, September 27, 2010 11:50:34 AM GMT Sunday, September 26, 2010 8:41:53 AM GMT
In my last post on the Reactive Extensions in .NET we have discussed about observable collections.Here we will take a look into the different types of observable and how they pushes values to the subscribers.In the example mentioned in the last post we  saw that, after invoking the subscribe method on the observable collection it starts pushing values to the sub... (more)
category: How To | clicked: 5 | comment | | source: codingndesign.com
tags: .NET, Rx, C#, Reactive Extensions
3
Shouts

Reactive Extensions in .NET – Observable Collections - Coding N Design

published 1009 days, 5 hours, 58 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 1011 days, 10 hours, 9 minutes ago
Tuesday, September 14, 2010 4:24:35 PM GMT Sunday, September 12, 2010 12:13:16 PM GMT
Last week I was reading about the two new interfaces introduced in .NET Framework 4.0 – IObservable & IObserver.In first place they seemed to be just simple interfaces providing a mechanism to implement the Observer (GoF) design pattern.But soon I found out that really meaningful implementations of these are actually present in the Reactive Extensions for .NET.T... (more)
category: How To | clicked: 2 | comment | | source: codingndesign.com
tags: .NET, C#, Observable, Reactive Extensions
3
Shouts

Entity Framework & Concurrency « Sankarsan’s Journal

posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 1025 days, 14 hours, 48 minutes ago
Sunday, August 29, 2010 7:34:36 AM GMT
ADO.NET Entity Framework is the Object Relational Mapping(ORM) framework from Microsoft which enables us to map .NET classes to objects(tables,views,stored procedures..etc) in a relational database.While studying any ORM framework it’s important to know about, how it handles concurrency and ensures data consistency.In this post we will look into what options ADO.NET Entity Framework provides for ensuring this consistency. (more)
category: How To | clicked: 3 | comment | | source: sankarsan.wordpress.com
tags: Entity Framework, Concurrency
4
Shouts

C# Monitor,Busy Wait,True Wait & SpinLock - Coding N Design

published 1032 days, 10 hours, 37 minutes ago posted by http://sankarsan.myopenid.com/http://sankarsan.myopenid.com/ 1033 days, 10 hours, 42 minutes ago
Sunday, August 22, 2010 11:45:38 AM GMT Saturday, August 21, 2010 11:40:28 AM GMT
In my last two posts I had discussed about thread synchronization,critical sections and System.Threading.Monitor class.What we have seen is, a critical section in the code where thread synchronization is required is protected by a lock.When a thread encounters a critical section it tries to acquire the lock,if successful it executes the code or else waits to acq... (more)
category: How To | clicked: 0 | comment | | source: codingndesign.com
tags: SpinLock, monitor, Threading
Previous 1 2 Next