SouthWorks Blogs
  • Home
  • Archive
  • About Us

Category: C# Subscribe to RSS Feed

  • How to easily unit test MVC routes using Fakes

    Published by mkrikorian on March 15th, 2013 12:07 pm under C#, Fakes, MVC

    No Comments
    In this short post I will show you how you can easily test your MVC routes using Fakes as mocking framework. Besides there is a lot of mocking frameworks you can choose to unit test your code, Fakes provides you the ability to mock almost any class within the framework, not just interfaces or virtual... read more
  • Validating requests in ASP.NET Web API (beyond ModelState.IsValid)

    Published by Jorge Rowies on February 14th, 2013 8:17 pm under ASP.NET Web API, C#

    No Comments
    Lately I’ve been working with ASP.NET Web API and I had to solve a couple of issues regarding data validation when sending a request to the API. Problem #1 When exposing an operation that receives several optional parameters (i.e. to perform a search), sending invalid parameters will not be detected by the API. Example: Given... read more
  • More NoSql stuff :: Couchbase from C#

    Published by mkrikorian on February 6th, 2013 6:33 pm under C#, Couchbase, DB, Distributed databases, MapReduce, NoSQL, ORM

    No Comments
    Continuing with my incursion in the NoSql database world, these days I’ve been playing with Couchbase installed on Windows 8 (after tackling several issues). Finally, after downloaded and installed it successfully, I’ve created a simple console application in C# to test its basis (as I did in my previous articles ‘Using MongoDB from C#‘ and ‘A little of... read more
  • A little of RavenDB

    Published by mkrikorian on February 1st, 2013 6:44 pm under C#, DB, Distributed databases, MapReduce, NoSQL, ORM, RavenDB

    No Comments
    Hi, a few days ago I published an article showing how you can easily use MongoDB under C#. In this article I mainly plan to show the same operations or features, but using RavenDB. As this database is built in C# it will be easier to integrate it a native C# client. Besides both databases have very similar... read more
  • Using MongoDB from C#

    Published by mkrikorian on January 29th, 2013 6:44 pm under C#, DB, Distributed databases, MapReduce, MongoDB, NoSQL, ORM

    No Comments
    Today I’ve been playing a little with MongoDB, and after enjoyed triggering a few commands from Mongo’s console, I decided to download, build and try the C# driver. Build it and use it is pretty straightforward, and in a couple of minutes you can be playing with your local database from a C# console application. So I... read more
  • NHibernate mappings tips using an Alternative Key

    Published by mkrikorian on January 28th, 2013 2:11 pm under C#, DB, NHibernate, ORM

    No Comments
    Recently I’ve been working with NHibernate, and besides configuring trivial mappings, I had to deal with some not so trivial: when I wanted to link to tables using an alternative key between them. In this short post I’ll resume the necessary steps to do this in case you need to do it too (in a... read more
  • Entity framework performance issues with lazy relationships

    Published by Jorge Rowies on December 27th, 2012 9:09 am under C#, Entity Framework, NHibernate

    No Comments
    During the last weeks I’ve been working in an application that uses Entity Framework (code-first) and I had a performance-related issue that I thought worth sharing. After implementing some features in the app I noticed some performance issues, so I decided to add MiniProfiler and see how things were going under the hood. The cause... read more
  • User defined fields (UDF) with Windows Azure Table Storage using Azure SDK

    Published by mkrikorian on September 12th, 2012 12:34 am under C#, Data Extensibility, Reflection, Table Storage, UDF, Windows Azure

    No Comments
    Lately, I’ve been working with the P&P group and something came up requiring to do Data Extensibility within Azure Table Storage. As this storage model is different to traditional DB schemas, we’ve found a similar approach relying on reflection and continued using the Microsoft.WindowsAzure.StorageClient assembly provided by Azure’s SDK. The problem to solve is how... read more
  • Tips and recommended practices for handling exceptions and validations in .NET C#

    Published by giglesias on August 31st, 2012 3:08 pm under C#, Exceptions Handling

    No Comments
    Hi everyone, This time I wanted to show the research we made with my colleague David Frassoni about recommendations and tips when handling exceptions and validations in C#. When to Throw an Exception We should not throw exceptions for every erroneous event. For example in an application in which we want to get a list... read more
  • Using Microsoft Trust Services to protect a shared resource

    Published by mkrikorian on August 8th, 2012 7:08 pm under C#, Data Encryption, Security, Windows Azure

    No Comments
    Microsoft Codename “Trust Services” lets several parties to encrypt/decrypt data over shared resources according to policies determined by an Administrator, where none of the parties have direct knowledge of the encryption key which is managed by a Trust Server. The Administrator, via an X509 certificate uploaded while provisioning a Trust Server, is the only one... read more
Next »

Featured Categories

  • Media
  • Identity
  • Emerging Technology

Popular Categories

  • Patterns & Practices
  • WPF
  • Silverlight
  • CAB
  • p&p

Popular Posts

  • ICommand for Silverlight with Attached Behaviors
  • Windows 7 – Image Capture with Sysprep
  • Effective MEF (Managed Extensibility Framework)
  • Installing and Configuring WDS (Windows Deployment Services): Full Images Deployment (Part I)
  • Deploy SCCM 2007 SP2 RC on Windows Server 2008 R2
  • Home
  • Archive
  • About Us
RSS

Copyright © 2013 Southworks. All Rights Reserved.