Wednesday, February 8, 2012

Keybord shortcut in Visual Studio

Navigator dialog box - Ctrl + comma

Optimistic concurrency in Entity Framework

To enable optimistic concurrency checking mark Entity property to be monitored for concurrency checking with attribute 'Concurrency Mode' as 'Fixed'. This can be done in properties window for a Entity property of interest in Entity Designer.

If any conflict occurs OptimisticConcurrencyException will be thrown. 

Wednesday, February 1, 2012

SSL access configuration for WCF

SSL will be used when Transport is set for wsHttpBinding



Apparently if mode is set to 'None' then any security requirements which would include SSL will be removed.
     <wsHttpBinding>
        <binding>
          <security mode="None">
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </wsHttpBinding>